
NOIP2015
gotojava9
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
NOIP2015普及组 —— 推销员(salesman)
#include <fstream>#include <algorithm>using namespace std;ifstream fin("salesman.in");ofstream fout("salesman.out");const int MAX_N = 100000, INT_MIN = 1<<31;struct Tnode{ int a, id;} a[MAX_N原创 2015-12-17 14:14:28 · 2465 阅读 · 0 评论 -
NOIP2015提高组day2 —— 跳石头(stone)
#include <fstream>using namespace std;ifstream fin("stone.in");ofstream fout("stone.out");int N, a[100000];int Binary_Search(int first, int last){ if (first == last) return first;原创 2015-12-05 00:40:48 · 1538 阅读 · 0 评论 -
NOIP2015提高组day1 —— 信息传递(message)
#include <fstream>using namespace std;ifstream fin("message.in");ofstream fout("message.out");const int MAX_n=200000;int T[MAX_n], a[MAX_n];int find_ancestor(int root){ if (a[root] == root)原创 2015-12-12 22:18:08 · 467 阅读 · 0 评论