摘要:A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Each input file contain
阅读全文
摘要:B. Destruction of a Tree time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Destruction o
阅读全文
摘要:C. Cut 'em all! time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Cut 'em all! time limi
阅读全文
摘要:As a cute girl, Kotori likes playing ``Hide and Seek'' with cats particularly. Under the influence of Kotori, many girls and cats are playing ``Hide a
阅读全文
摘要:B. Fox And Two Dots time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Fox And Two Dots
阅读全文
摘要:You all know the Dirichlet principle, the point of which is that if n boxes have no less than n + 1 items, that leads to the existence of a box in whi
阅读全文
摘要:#include #include #include #include using namespace std; int v[10]; int a[10]; void display() { int i; for (i = 1; i <= 8; i++) { if (i == 8) cout << a[i] << endl; else...
阅读全文
摘要:Find a way Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19320 Accepted Submission(s): 6234 Pro
阅读全文