![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
NOIP
文章平均质量分 64
h1111202
这个作者很懒,什么都没留下…
展开
-
NOIP 2011 Day1 Problem2
#include #include using namespace std; struct node { int color; int cost; }a[200010]; int number[60],number1[60]; int main() { freopen("hotel.in","r",stdin); freopen("hotel.out","w",st原创 2011-11-20 16:54:33 · 309 阅读 · 1 评论 -
NOIP 2011 Day2 Problem1
#include #define min(a,b) (a>b?b:a) int zs[]={0,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,1原创 2011-11-20 16:56:42 · 306 阅读 · 1 评论 -
NOIP 2011 Day2 Problem2
#include #define max(a,b) (a>b?a:b) long long abs(long long x) { if(x>0) return x; else return (-1)*x; } struct node { int weight; int value; }a[200010],total[200010]; struct note {原创 2011-11-20 16:58:22 · 314 阅读 · 1 评论 -
NOIP 2011 Day1 Problem3
谢谢 Vfleaking 的大力支持! #include #include #include #include #include using namespace std; const int N = 7, M = 5; const int MaxDepth = 5; int a[N][M]; int depth; bool successed = false; struct s原创 2011-11-20 17:08:18 · 270 阅读 · 0 评论 -
NOIP 2011 Day2 Problem3 (调试中)
#include #define MAXN 1010 #define max(a,b) (a>b?a:b) int arrive[MAXN],last[MAXN],dis[MAXN],range[MAXN],num[MAXN]; int main() { int m,n,k,sum=0; freopen("bus.in","r",stdin); freopen("bus.out","w",s原创 2011-11-20 17:00:57 · 350 阅读 · 0 评论