1 条题解
-
0孤的千年 LV 8 @ 2017-07-11 19:23:34
#include <cstdio>
#include <iostream>
#define ll long long
using namespace std;int main()
{
ll t,s,x;
while(cin>>t>>s>>x)
{
if(t==x)
{
printf("F**k the chick!\n");
continue;
}
if(x<t)
{
printf("Mr.Wang can sleep well.\n");
// printf("\n");
continue;
}
if(x-t!=1 && ((x-t)%s==0 || ((x-t)%s==1 && x-t>=0)))
{
printf("F**k the chick!\n");
continue;
}
if(x-t==1 && s==1)
{
printf("F**k the chick!\n");
continue;
}
printf("Mr.Wang can sleep well.\n");
}
return 0;
}
- 1