2020牛客暑期多校训练营(第七场)D.Fake News

题目链接
思路:
特判1和24即可。
代码:

#include<bits/stdc++.h>
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
const int N=1e5+5;
const int M=2e4+5;
const double eps=1e-8;
const int mod=1e9+7;
const int inf=0x7fffffff;
const double pi=3.1415926;
using namespace std;
signed main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n;
        scanf("%d",&n);
        if(n==1||n==24)
        {
            printf("Fake news!\n");
        }
        else
        {
            printf("Nobody knows it better than me!\n");
        }
    }
	return 0;
}

猜你喜欢

转载自blog.csdn.net/ACkingdom/article/details/107736832