当前位置:网站首页>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;
}
原网站

版权声明
本文为[Graylan_]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140513307692.html