当前位置:网站首页>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;
}边栏推荐
- Creation and use of thymeleaf template
- 把 ”中台“ 的思想迁移到代码中去
- Xiao Sha's arithmetic problem solving Report
- Can I pass the PMP Exam in 20 days?
- Array sorting num ranking merge in ascending order
- D-snow halo solution
- Bugku cyberpunk
- 市值蒸发超百亿美元,“全球IoT云平台第一股”赴港求生
- Nine hours, nine people, nine doors problem solving Report
- Reproduce ThinkPHP 2 X Arbitrary Code Execution Vulnerability
猜你喜欢

Xiao Sha's arithmetic problem solving Report

Explanation report of the explosion

Common PHP interview questions (1) (written PHP interview questions)

Value series solution report

市值蒸发超百亿美元,“全球IoT云平台第一股”赴港求生

I spring and autumn blasting-2

lv_ font_ Conv offline conversion

Common redis data types and application scenarios

Bugku easy_ nbt

I spring web upload
随机推荐
Huawei Hubble incarnation hard technology IPO harvester
1330:【例8.3】最少步数
【 note 】 résoudre l'erreur de code IDE golang
JMeter performance test: serveragent resource monitoring
Reproduce ThinkPHP 2 X Arbitrary Code Execution Vulnerability
qt creater断点调试程序详解
Example of lvgl display picture
Value series solution report
Go learning ----- relevant knowledge of JWT
What are the domestic formal futures company platforms in 2022? How about founder metaphase? Is it safe and reliable?
MySQL之CRUD
Appium自动化测试基础 — APPium基础操作API(二)
Ctfshow web entry explosion
B站做短视频,学抖音死,学YouTube生?
Basic JSON operations of MySQL 5.7
MySQL表字段调整
Maximum common subsequence
Bugku's steganography
How can the boss choose programmers to help me with development?
First PR notes