摘要:
Network Description A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integ 阅读全文
摘要:
CA Loves GCD Accepts: 135 Submissions: 586 Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) CA Loves GCD Accepts: 13 阅读全文
摘要:
Description 有一棵点数为 N 的树,以点 1 为根,且树点有边权。然后有 M 个 操作,分为三种: 操作 1 :把某个节点 x 的点权增加 a 。 操作 2 :把某个节点 x 为根的子树中所有点的点权都增加 a 。 操作 3 :询问某个节点 x 到根的路径中所有点的点权和。 有一棵点数为 阅读全文
摘要:
Tour Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 2628 Accepted Submission(s): 1285 Problem De 阅读全文
摘要:
India and China Origins Time Limit: 2000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 676 Accepted Submission(s 阅读全文
摘要:
We would like to place n rooks, 1 ≤ n ≤ 5000, on a n×n board subject to the following restrictions The input consists of several test cases. The first 阅读全文
摘要:
Description A substring of a string T is defined as: Given two strings A, B and one integer K, we define S, a set of triples (i, j, k): You are to giv 阅读全文