
水题
Benzema67
北京邮电大学学生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Codeforces Problem 37B - Computer Game
按题目要求写就可以 #include #include #include struct point{ int pow; int dmg; int num; }str[1010]; int visit[1010]; int ans1[1010],ans2[1010]; int cmp(con原创 2012-01-27 14:04:47 · 884 阅读 · 0 评论 -
Google Code Jam 2010 Qualification Round 2012 Problem B && C
B题 当p=0时所有的总分都在sum1++, 当p=1时,总分>=1时在sum1++,总分==0,是无论如何都满足不了题意(坑点); 总分>=29时是没有surprising情况的,无论p取何值都在sum1++; #include #include using namespace std; int main(){ int n,i,j,T,t,s,p,a; char ch; freop原创 2012-04-15 11:06:27 · 1217 阅读 · 0 评论 -
poj 4044
很水,但还是WA了好几次 #include #include #include using namespace std; int cmp(int a,int b){ return a>b; } int cmp2(int a,int b){ if(a%10==b%10) return a<b; return a%10<b%10; } int n,m; int dp[31]; int ma原创 2012-05-13 00:15:13 · 1084 阅读 · 0 评论