2020 Niuke Multi-schools Game 7 D Fake News

Topic link
Problem-solving idea:
special judgment.
At that time, I tried the first 100 and found only 2 in the first 100, only 2 in the first 1000, only 2 in the first 10,000, and the first 100,000. I tried it and found it passed. . . . . .
AC code:

#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;
}

Guess you like

Origin blog.csdn.net/weixin_44063734/article/details/107864168