FZU 2206 函数求解 找规律

题目:http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=280026

代码:

#include<stdio.h>
#include<string.h>

using namespace std;

int main()
{
    int t;
    scanf("%d",&t);
    while(t--)
    {
        __int64 a;
        scanf("%I64d",&a);
        if(a<20150001)
            printf("%I64d\n",a+2014);
        else
            printf("20152014\n");
    }
}

感谢夏学霸和宋学霸的无私帮助。

你可能感兴趣的:(FZU 2206 函数求解 找规律)