摘要:
#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(... 阅读全文
摘要:
# 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=... 阅读全文
摘要:
#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... 阅读全文