上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 98 下一页
摘要: A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: Each inp 阅读全文
posted @ 2020-03-24 19:07 Veritas_des_Liberty 阅读(181) 评论(0) 推荐(0)
摘要: As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro 阅读全文
posted @ 2020-02-22 15:46 Veritas_des_Liberty 阅读(294) 评论(0) 推荐(0)
摘要: This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2019-12-26 22:29 Veritas_des_Liberty 阅读(588) 评论(0) 推荐(0)
摘要: 1001 A+B Format (20分) Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unl 阅读全文
posted @ 2019-12-24 22:20 Veritas_des_Liberty 阅读(381) 评论(0) 推荐(0)
摘要: 1071. Greatest Common Divisor of Strings For strings S and T, we say "T divides S" if and only if S = T + ... + T (T concatenated with itself 1 or mor 阅读全文
posted @ 2019-06-02 16:33 Veritas_des_Liberty 阅读(333) 评论(0) 推荐(0)
摘要: Given an integer array, your task is to find all the different possible increasing subsequences of the given array, and the length of an increasing su 阅读全文
posted @ 2019-05-31 22:30 Veritas_des_Liberty 阅读(178) 评论(0) 推荐(0)
摘要: Think about Zuma Game. You have a row of balls on the table, colored red(R), yellow(Y), blue(B), green(G), and white(W). You also have several balls i 阅读全文
posted @ 2019-05-31 21:18 Veritas_des_Liberty 阅读(24247) 评论(0) 推荐(0)
摘要: Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you can make one s 阅读全文
posted @ 2019-05-30 22:32 Veritas_des_Liberty 阅读(258) 评论(0) 推荐(0)
摘要: Given a reference of a node in a connected undirected graph, return a deep copy (clone) of the graph. Each node in the graph contains a val (int) and 阅读全文
posted @ 2019-05-30 22:00 Veritas_des_Liberty 阅读(229) 评论(0) 推荐(0)
摘要: Given a number N, return a string consisting of "0"s and "1"s that represents its value in base -2 (negative two). The returned string must have no le 阅读全文
posted @ 2019-05-29 16:31 Veritas_des_Liberty 阅读(341) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 98 下一页