当前位置:网站首页>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;
}
边栏推荐
- How to delete an attribute or method of an object
- QT learning 19 standard dialog box in QT (top)
- 小项目(servelt+jsp+mysql+EL+JSTL)完成一个登录功能的Servlet,具有增删改查的操作。实现登录身份验证,防止非法登录,防止多点登录,记住用户名密码功能。
- Redis:Redis的数据结构、key的操作命令
- Record 405 questions about bank callback post request
- Rasp implementation of PHP
- 信创产业现状、分析与预测
- Redis:字符串类型数据的操作命令
- allegro,orcad, net alias,port,off-page connector之间的异同点和如何选取
- 核酸修饰的金属有机框架药物载体|PCN-223金属有机骨架包载Ad金刚烷|ZIF-8包裹阿霉素(DOX)
猜你喜欢

Interface for querying IP home

Article content typesetting and code highlighting

Message subscription and publishing

Dlopen() implements dynamic loading of third-party libraries

FPGA测试方法以Mentor工具为例

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

JVM class loading

从零开始的基于百度大脑EasyData的多人协同数据标注

JS matrix zero

Go language web development series 27: Gin framework: using gin swagger to implement interface documents
随机推荐
UiO-66-COOH装载苯达莫司汀|羟基磷灰石( HA) 包裹MIL-53(Fe)纳米粒子|装载黄芩苷锰基金属有机骨架材料
Golang - command line tool Cobra
Thrift threadmanager and three monitors
Solve the problem of dormitory router campus network sharing login
Vite project commissioning
Redis:字符串类型数据的操作命令
Message subscription and publishing
从零开始的基于百度大脑EasyData的多人协同数据标注
金属有机骨架MIL-88负载阿霉素DOX|叶酸修饰UiO-66-NH2负载阿霉素[email protected]纳米粒子
jvm-对象生命周期
Go 1.16.4: manage third-party libraries with Mod
JVM object lifecycle
Common mixins
QT learning 25 layout manager (4)
虽然不一定最优秀,但一定是最努力的!
Redis: operation command of string type data
Mysql:insert date:sql error [1292] [22001]: data truncation: incorrect date value:
[acnoi2022] guess numbers
MySQL 数据处理值增删改
Qt学习25 布局管理器(四)