当前位置:网站首页>7-9 find a small ball with a balance
7-9 find a small ball with a balance
2022-07-03 14:09:00 【ᯤ⁹ᴳ⁺ ·】
7-9 Find the ball with a balance (10 branch )
Three balls A、B、C, The size and shape are the same, and one of the balls has a different weight from the other balls . Ask to find this different ball .
Input format :
Enter... On one line 3 A positive integer , The order corresponds to the ball A、B、C Weight of .
Output format :
Output the only different ball in one line .
sample input :
1 1 2
sample output :
C
#include<stdio.h>
int main(){
int A,B,C;
scanf("%d %d %d",&A,&B,&C);
if(A==B){
printf("C");
}else if(A==C){
printf("B");
}else{
printf("A");
}
return 0;
}
边栏推荐
- Collection of mobile adaptation related articles
- How to use lxml to judge whether the website announcement is updated
- 消息订阅与发布
- Global event bus
- QT learning 20 standard dialog box in QT (middle)
- jvm-运行时数据区
- Implementation of Muduo accept connection, disconnection and sending data
- Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)
- Qt学习23 布局管理器(二)
- JS general form submission 1-onsubmit
猜你喜欢
Go: send the get request and parse the return JSON (go1.16.4)
Qt学习22 布局管理器(一)
Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)
JS Part 2
小项目(servelt+jsp+mysql+EL+JSTL)完成一个登录功能的Servlet,具有增删改查的操作。实现登录身份验证,防止非法登录,防止多点登录,记住用户名密码功能。
Qt学习24 布局管理器(三)
Qt学习19 Qt 中的标准对话框(上)
【吉林大学】考研初试复试资料分享
The small project (servlet+jsp+mysql+el+jstl) completes a servlet with login function, with the operation of adding, deleting, modifying and querying. Realize login authentication, prevent illegal log
28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
随机推荐
Doxorubicin loaded on metal organic framework MIL-88 DOX | folic acid modified uio-66-nh2 doxorubicin loaded [email
Cross linked cyclodextrin metal organic framework loaded methotrexate slow-release particles | metal organic porous material uio-66 loaded with flavonoid glycosides | Qiyue
好看、好用、强大的手写笔记软件综合评测:Notability、GoodNotes、MarginNote、随手写、Notes Writers、CollaNote、CollaNote、Prodrafts、Noteshelf、FlowUs、OneNote、苹果备忘录
MIL-100( Fe) 包裹小分子阿司匹林形成[email protected](Fe)|甘草次酸修饰金属有机框架材料UiO-66-NH2(简称UiO-66-NH2-GA)
3D视觉——2.人体姿态估计(Pose Estimation)入门——OpenPose含安装、编译、使用(单帧、实时视频)
JS input number and standard digit number are compared. The problem of adding 0 to 0
Generate directories from web content
simpleParallax. JS (create poor visual effects for website pictures)
TS code automatically generates JS
Solve the problem of dormitory router campus network sharing login
UiO-66-COOH装载苯达莫司汀|羟基磷灰石( HA) 包裹MIL-53(Fe)纳米粒子|装载黄芩苷锰基金属有机骨架材料
QT learning 22 layout manager (I)
消息订阅与发布
QT learning 20 standard dialog box in QT (middle)
金属有机骨架材料ZIF-8包载姜黄素([email protected]纳米颗粒)|纳米金属有机框架搭载雷帕霉素|科研试剂
Rasp implementation of PHP
JVM系列——概述,程序计数器day1-1
Go 1.16.4: manage third-party libraries with Mod
28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
Invalid Z-index problem