当前位置:网站首页>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;
}边栏推荐
- 可转债打新在哪里操作开户是更安全可靠的呢
- Database learning - Database Security
- The elimination strategy of redis
- 【简记】解决IDE golang 代码飘红报错
- I spring web upload
- Au - delà du PARM! La maîtrise de l'Université de Pékin propose diverse pour actualiser complètement le classement du raisonnement du NLP
- Crud de MySQL
- Creation and use of thymeleaf template
- Common interview questions about swoole
- 一文搞定vscode编写go程序
猜你喜欢

百亿按摩仪蓝海,难出巨头

ionic cordova项目修改插件

I spring and autumn blasting-2

No one consults when doing research and does not communicate with students. UNC assistant professor has a two-year history of teaching struggle

Summary of the third class

Aike AI frontier promotion (7.5)

keep-alive

RepLKNet:不是大卷积不好,而是卷积不够大,31x31卷积了解一下 | CVPR 2022

OSI seven layer model

Redis' transaction mechanism
随机推荐
CSDN I'm coming
Calculate weight and comprehensive score by R entropy weight method
Install PHP extension spoole
Brief introduction of machine learning framework
F. Min cost string problem solving Report
mapper.xml文件中的注释
Summary of the third class
DVWA range clearance tutorial
Garbage collection mechanism of PHP (theoretical questions of PHP interview)
把 ”中台“ 的思想迁移到代码中去
市值蒸发超百亿美元,“全球IoT云平台第一股”赴港求生
ICML 2022 | explore the best architecture and training method of language model
First PR notes
Bugku's Ping
Surpass palm! Peking University Master proposed diverse to comprehensively refresh the NLP reasoning ranking
Appium automation test foundation - appium basic operation API (II)
How can I quickly check whether there is an error after FreeSurfer runs Recon all—— Core command tail redirection
Where is the operation of convertible bond renewal? Is it safer and more reliable to open an account
Nine hours, nine people, nine doors problem solving Report
go语言编程规范梳理总结