有史以来第一届面向社会征题的NOIp结束了。最开始以为面向社会征题会很难,但是这是我参加的最水的一次NOIp了。

由于停了两月的课,所以现在正在补文化科目就没时间打代码了。所以所有的题目就均不给出代码了啦啦啦~为了方便没有参加NOIP的童鞋们我把题目网址放到了每道题题解的最后。

晚了两周的题解如下:

Day1T1 生活大爆炸版石头剪刀布

     我就不说了。。近几年来NOIp最水的第一题(我会告诉你我去年第一题用的是30分算法?)我们这里有一位小伙伴本地测试AC,但是官方爆0了。我们特意下载了NOI Linux帮他重测,原因是什么呢?没有#include<cstdio>就freopen+stdin。stdin是定义在cstdio里面的好吗!!所以他第一天愉快的爆0。。但是第二天他神奇的加上了#include <fstream>,这个里面有定义stdin。。简直没话说。。另外他的D1T2和D1T3上交的是main.cpp,全部没有收上去。不过收上去也是CE。。

    感谢后世人,戒之慎勿忘!

    一定养成检查文件名、头文件的好习惯!头文件最好一开始就全部打上去,不管用不用得到。在此分享一下我的代码模板:

 1 #include <iostream>
 2 #include <cstdio>
 3 #include <fstream>
 4 #include <cstring>
 5 #include <string>
 6 #include <cstdlib>
 7 #include <cmath>
 8 #include <algorithm>
 9 #include <queue>
10 #include <stack>
11 #include <map>
12 #include <set>
13 #include <list>
14 #include <vector>
15 #include <ctime>
16 #include <functional>
17 #include <iterator>
18 using namespace std;
19 typedef long long LL;
20 typedef unsigned int Uint; 
21 const int INF=0x3fffffff;
22 //==============struct declaration==============
23 
24 //==============var declaration=================
25 
26 //==============function declaration============
27 
28 //==============main code=======================
29 int main()
30 {  
31 #define FILE__
32 #ifdef FILE__
33   freopen("spyweb.in","r",stdin);
34   freopen("spyweb.out","w",stdout);
35 #endif
36   
37   return 0;
38 }
39 //================fuction code====================
Template

相关文章: