当前位置:网站首页>Noi / 1.4 07: collect bottle caps to win awards
Noi / 1.4 07: collect bottle caps to win awards
2022-07-05 15:35:00 【Graylan_】
describe
A beverage company recently launched a “ Collect bottle caps and win awards ” The activities of : If you have 10 It's printed with “ lucky ”、 or 20 It's printed with “ encourage ” Cap of , You can exchange it for a mystery prize .
Now give us what you have “ lucky ” and “ encourage ” The number of caps on the bottle , Judge whether you can exchange for the grand prize .
Input
a line , Contains two integers , They are printed with “ lucky ” and “ encourage ” The number of caps on the bottle , Separated by a space .
Output
a line . If you can exchange for the grand prize , Output 1, Otherwise output 0.
The sample input
11 19
Sample output
1
Source code :
#include <iostream> using namespace std; int main() { int a,b; cin>>a>>b; if(a>=10||b>=20) cout << 1 << endl; else cout << 0; return 0; }
边栏推荐
- 把 ”中台“ 的思想迁移到代码中去
- Common interview questions about swoole
- Surpass palm! Peking University Master proposed diverse to comprehensively refresh the NLP reasoning ranking
- Severlet learning foundation
- Can gbase 8A view the location of SQL statement history?
- MySQL之CRUD
- wyt 。。
- Ctfshow web entry information collection
- go语言编程规范梳理总结
- Example of lvgl display picture
猜你喜欢
I spring and autumn blasting-2
Common MySQL interview questions
MySQL 巨坑:update 更新慎用影响行数做判断!!!
Advanced level of static and extern
Crud de MySQL
Good article inventory
How to paste the contents copied by the computer into mobaxterm? How to copy and paste
Appium自动化测试基础 — APPium基础操作API(一)
Usage and usage instructions of JDBC connection pool
Creation and optimization of MySQL index
随机推荐
P6183 [USACO10MAR] The Rock Game S
Xiao Sha's arithmetic problem solving Report
你童年的快乐,都是被它承包了
[recruitment position] Software Engineer (full stack) - public safety direction
Can gbase 8A view the location of SQL statement history?
The difference between abstract classes and interfaces in PHP (PHP interview theory question)
ICML 2022 | 探索语言模型的最佳架构和训练方法
Basic JSON operations of MySQL 5.7
Ecotone technology has passed ISO27001 and iso21434 safety management system certification
Cartoon: what are the attributes of a good programmer?
I spring web upload
Creation and use of thymeleaf template
华为哈勃化身硬科技IPO收割机
Huawei Hubble incarnation hard technology IPO harvester
How can the boss choose programmers to help me with development?
Leetcode: Shortest Word Distance II
Value series solution report
Install PHP extension spoole
episodic和batch的定义
lv_font_conv离线转换