2020牛客多校赛第七场D Fake News

题目链接
解题思路:
特判
当时打比赛的时候试了试前100个发现只有2个,前1000只有2个,前10000,前100000都只有2个,就试了试,发现就过了。。。。。。
AC代码:

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    
    
    int T;
    long long n;
    cin>>T;
    for (int i=1;i<=T;i++)
    {
    
    
        scanf("%lld",&n);
        if (n==24 || n==1) printf("Fake news!\n");
        else printf("Nobody knows it better than me!\n");
    }
    return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_44063734/article/details/107864168