当前位置:网站首页>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
- ICML 2022 | 探索语言模型的最佳架构和训练方法
- F. Min cost string problem solving Report
- SQL Server learning notes
- Temporary cramming before DFS examination
- JS knowledge points-01
- Ecotone technology has passed ISO27001 and iso21434 safety management system certification
- Hongmeng system -- Analysis from the perspective of business
- 基于OpenHarmony的智能金属探测器
- [recruitment position] infrastructure software developer
猜你喜欢
Creation and use of thymeleaf template
Example of lvgl display picture
Ctfshow web entry command execution
P6183 [USACO10MAR] The Rock Game S
社区团购撤城“后遗症”
一文搞定vscode编写go程序
Explanation report of the explosion
P1451 calculate the number of cells / 1329: [example 8.2] cells
六种常用事务解决方案,你方唱罢,我登场(没有最好只有更好)
lv_ font_ Conv offline conversion
随机推荐
【 note 】 résoudre l'erreur de code IDE golang
Anti shake and throttling
1330: [example 8.3] minimum steps
Garbage collection mechanism of PHP (theoretical questions of PHP interview)
First PR notes
Bugku's Ah Da
数据库学习——数据库安全性
Xiao Sha's arithmetic problem solving Report
Redis' transaction mechanism
Ionic Cordova project modification plug-in
F. Weights assignment for tree edges problem solving Report
B站做短视频,学抖音死,学YouTube生?
Bugku's eyes are not real
Write a go program with vscode in one article
Thymeleaf uses background custom tool classes to process text
What are CSRF, XSS, SQL injection, DDoS attack and timing attack respectively and how to prevent them (PHP interview theory question)
D-snow halo solution
Optional parameters in the for loop
sql server学习笔记
Object. defineProperty() - VS - new Proxy()