Problem Description
Once upon a time, Hamza was hungry, only leftover food could be found in the fridge, so he wanted to order online.
Hamza currently has x JDs, and the sandwich he wants to buy costs y JDs, can Hamza order food online or he has to face his biggest enemies, leftover food?
Input
The first and only line in the input contains exactly 2 space separated integers x,y(1≤x,y≤10), the amount of money he has, and the cost of the sandwich.
Output
If Hamza can buy the sandwich print "1"(on a single line without quotes), otherwise print "0"(on a single line without quotes).
Examples
input
4 2
output
1
input
1 10
output
0
input
5 5
output
1
题意:给出 x、y 两个数,如果 x 大于等于 y 输出 1,否则输出 0
思路:简单模拟
Source Program
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<string>
#include<cstring>
#include<cmath>
#include<ctime>
#include<algorithm>
#include<utility>
#include<stack>
#include<queue>
#include<vector>
#include<set>
#include<map>
#include<bitset>
#define EPS 1e-9
#define PI acos(-1.0)
#define INF 0x3f3f3f3f
#define LL long long
#define Pair pair<int,int>
const int MOD = 1E9+7;
const int N = 400+5;
const int dx[] = {1,-1,0,0,-1,-1,1,1};
const int dy[] = {0,0,-1,1,-1,1,-1,1};
using namespace std;
int main(){
int x,y;
scanf("%d%d",&x,&y);
if(x>=y)
printf("1\n");
else
printf("0\n");
return 0;
}