2012年7月16日

HDU 1285 确定比赛名次

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1285好久好久没编程了。。。。几个月了。。。。感觉很费劲!基本思想很容易。。。。这里对输入的处理比较关键。。。。因为对于其中2位对手来说。。只有三种情况(通过多次比赛后最终的结果)。。。还有n==1的时候。。。下面的break漏了会WA。。。#include <iostream>using namespace std;int g[505][505];int ingree[505];int main(){ int n, m; while(~scanf("%d%d", &n 阅读全文

posted @ 2012-07-16 13:59 [S*I]SImMon_WCG______* 阅读(698) 评论(0) 推荐(0) 编辑

导航