摘要: #includeint main(){ int n; printf("# Cards Overhang\n"); while(scanf("%d",&n)!=EOF) { double sum=0.5; int i; for(i=2;i<=n;i++) sum+=1.0/(2*i); printf(... 阅读全文
posted @ 2013-04-16 21:00 白洞 阅读(165) 评论(0) 推荐(0) 编辑
摘要: # include int main (){ int n, ans, i ; puts ("PERFECTION OUTPUT") ; while (~scanf ("%d", &n),n) { for(i = 1,ans=0 ; i n)puts("ABUNDANT"); else if(ans=... 阅读全文
posted @ 2013-04-16 20:34 白洞 阅读(144) 评论(2) 推荐(0) 编辑
摘要: #include #include using namespace std;const int MAX = 1005;int father[MAX], rank[MAX];int n, m;void MakeSet(){ for (int i = 1; i > T; while (T--) { c... 阅读全文
posted @ 2013-04-16 19:58 白洞 阅读(126) 评论(0) 推荐(0) 编辑