当前位置:网站首页>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;
}
边栏推荐
- allegro,orcad, net alias,port,off-page connector之间的异同点和如何选取
- Vite project commissioning
- 28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
- Raft 协议
- Why are grass-roots colleges and universities with "soil and poverty" called "Northeast small Tsinghua"?
- 1px problem of mobile terminal
- 叶酸修饰的金属-有机骨架(ZIF-8)载黄芩苷|金属有机骨架复合磁性材料([email protected])|制备路线
- page owner特性浅析
- Rasp implementation of PHP
- Summary of common error reporting problems and positioning methods of thrift
猜你喜欢

如何使用lxml判断网站公告是否更新

Qt学习22 布局管理器(一)

Qt学习21 Qt 中的标准对话框(下)

Metal organic framework MOFs loaded with non steroidal anti-inflammatory drugs | zif-8 wrapped Prussian blue loaded quercetin (preparation method)

Failure of vector insertion element iterator in STL

JS input number and standard digit number are compared. The problem of adding 0 to 0

Go language web development series 29: Gin framework uses gin contrib / sessions library to manage sessions (based on cookies)

JS Part 2

jvm-对象生命周期

核酸修饰的金属有机框架药物载体|PCN-223金属有机骨架包载Ad金刚烷|ZIF-8包裹阿霉素(DOX)
随机推荐
Redis: operation command of string type data
28: Chapter 3: develop Passport Service: 11: define attributes in the configuration file, and then obtain them in the code;
Failure of vector insertion element iterator in STL
“又土又穷”的草根高校,凭什么被称为“东北小清华”?
JVM family - overview, program counter day1-1
js 2023. String pair equal to the target string after connection
关于回溯问题中的排列问题的思考(LeetCode46题与47题)
JS new challenges
[combinatorics] permutation and combination (two counting principles, examples of set permutation | examples of set permutation and circle permutation)
玖逸云黑免费无加密版本源码
Uniapp tips - scrolling components
Simulated access
Implementation of Muduo asynchronous logging
Use and design of Muduo buffer class
Go language web development series 26: Gin framework: demonstrates the execution sequence of code when there are multiple middleware
Dynamic programming 01 knapsack and complete knapsack
【吉林大学】考研初试复试资料分享
Onmenusharetimeline custom shared content is invalid, and the title and icon are not displayed
怎样删除对象的某个属性或⽅法
Common network state detection and analysis tools