当前位置:网站首页>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;
}
边栏推荐
- Use and design of Muduo buffer class
- 3D vision - 2 Introduction to pose estimation - openpose includes installation, compilation and use (single frame, real-time video)
- Solve MySQL 1045 access denied for user 'root' @ 'localhost' (using password: yes)
- Example analysis of QT learning 18 login dialog box
- [Jilin University] information sharing of postgraduate entrance examination and re examination
- QT learning 20 standard dialog box in QT (middle)
- Summary of common error reporting problems and positioning methods of thrift
- Redis:字符串類型數據的操作命令
- Thrift threadmanager and three monitors
- Too many files with unapproved license
猜你喜欢

使用vscode查看Hex或UTF-8编码

好看、好用、强大的手写笔记软件综合评测:Notability、GoodNotes、MarginNote、随手写、Notes Writers、CollaNote、CollaNote、Prodrafts、Noteshelf、FlowUs、OneNote、苹果备忘录

Comprehensive case of MySQL data addition, deletion, modification and query

jvm-对象生命周期

核酸修饰的金属有机框架药物载体|PCN-223金属有机骨架包载Ad金刚烷|ZIF-8包裹阿霉素(DOX)

Another industry has been broken by Chinese chips. No wonder the leading analog chip companies in the United States have cut prices and sold off

Qt学习23 布局管理器(二)

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

MySQL 数据增删改查综合案例

Use and design of Muduo buffer class
随机推荐
Go language web development series 25: Gin framework: using MD5 to verify the signature for the interface station
“又土又穷”的草根高校,凭什么被称为“东北小清华”?
Golang - command line tool Cobra
UiO-66-COOH装载苯达莫司汀|羟基磷灰石( HA) 包裹MIL-53(Fe)纳米粒子|装载黄芩苷锰基金属有机骨架材料
QT learning 17 dialog box and its types
JS Part 2
Uniapp skills - scrolling components -1
金属有机骨架MOFs装载非甾体类抗炎药物|ZIF-8包裹普鲁士蓝负载槲皮素(制备方法)
[technology development-24]: characteristics of existing IOT communication technology
Redis: redis data structure and key operation commands
Go language unit test 5: go language uses go sqlmock and Gorm to do database query mock
Qt学习17 对话框及其类型
Article content typesetting and code highlighting
Depth and breadth first traversal of tree (regardless of binary tree)
Function calling convention
Another industry has been broken by Chinese chips. No wonder the leading analog chip companies in the United States have cut prices and sold off
JS new challenges
Common network state detection and analysis tools
Use and design of Muduo buffer class
Go language web development series 30: gin: grouping by version for routing