当前位置:网站首页>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; }
边栏推荐
- go语言编程规范梳理总结
- Dark horse programmer - software testing -10 stage 2-linux and database -44-57 why learn database, description of database classification relational database, description of Navicat operation data, de
- CSDN I'm coming
- lvgl 显示图片示例
- Database learning - Database Security
- MySQL表字段调整
- Thymeleaf uses background custom tool classes to process text
- Temporary cramming before DFS examination
- Cartoon: what are the attributes of a good programmer?
- 【簡記】解决IDE golang 代碼飄紅報錯
猜你喜欢
lv_ font_ Conv offline conversion
OSI 七层模型
Ctfshow web entry explosion
Bubble sort, insert sort
How can I quickly check whether there is an error after FreeSurfer runs Recon all—— Core command tail redirection
F. Min cost string problem solving Report
数据库学习——数据库安全性
Creation and use of thymeleaf template
No one consults when doing research and does not communicate with students. UNC assistant professor has a two-year history of teaching struggle
P1451 求细胞数量/1329:【例8.2】细胞
随机推荐
swiper. JS to achieve barrage effect
记录一下树莓派搭建环境中遇到的坑。。。
一文搞定vscode编写go程序
Appium自动化测试基础 — APPium基础操作API(一)
Value series solution report
The difference between SQL Server char nchar varchar and nvarchar
No one consults when doing research and does not communicate with students. UNC assistant professor has a two-year history of teaching struggle
episodic和batch的定义
Advanced level of static and extern
当代人的水焦虑:好水究竟在哪里?
基于OpenHarmony的智能金属探测器
Bugku's Ah Da
Maximum common subsequence
ICML 2022 | explore the best architecture and training method of language model
超越PaLM!北大硕士提出DiVeRSe,全面刷新NLP推理排行榜
[recruitment position] infrastructure software developer
Xiao Sha's arithmetic problem solving Report
First PR notes
Detailed explanation of QT creator breakpoint debugger
Bugku telnet