首页 > 其他 > 详细

FOJ 2206 函数求解

时间:2015-11-20 19:51:39      阅读:223      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!