码迷,mamicode.com
首页 > 其他好文 > 详细

FOJ 2206 函数求解

时间:2015-11-20 19:51:42      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:

水题

/* ***********************************************
Author        :Zhou Zhentao
Email         :774388357@qq.com
Created Time  :2015/11/20 17:06:34
File Name     :acm.cpp
************************************************ */

#include <stdio.h>
#include <string.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <string>
#include <math.h>
#include <stdlib.h>
#include <time.h>
using namespace std;

int F(int x){
    if(x<20150001) return x+2014;
    return 20152014;
}

int main(){
    int n, T;
    scanf("%d",&T);
    while(T--){
        scanf("%d",&n);
        printf("%d\n",F(n));
    }
    return 0;
}

 

FOJ 2206 函数求解

标签:

原文地址:http://www.cnblogs.com/zufezzt/p/4981494.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!