摘要: 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗? Input输入包括多组数据。每组数据第一行是两个整数N、M(N<=100,M<=10000 阅读全文
posted @ 2019-08-01 13:03 GRedComeT 阅读(126) 评论(0) 推荐(0) 编辑
摘要: It's marriage season in Ringland! Ringland has a form of a circle's boundary of length LL. There are nn bridegrooms and nn brides, and bridegrooms dec 阅读全文
posted @ 2019-07-31 20:25 GRedComeT 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Little Q is fighting against scary monsters in the game ``Monster Hunter''. The battlefield consists of nn intersections, labeled by 1,2,...,n1,2,..., 阅读全文
posted @ 2019-07-29 11:50 GRedComeT 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Today the company has m tasks to complete. The ith task need xi minutes to complete. Meanwhile, this task has a difficulty level yi. The machine whose 阅读全文
posted @ 2019-07-27 22:20 GRedComeT 阅读(171) 评论(0) 推荐(0) 编辑
摘要: A square is a 4-sided polygon whose sides have equal length and adjacent sides form 90-degree angles. It is also a polygon such that rotating about it 阅读全文
posted @ 2019-07-27 21:45 GRedComeT 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize 阅读全文
posted @ 2019-07-26 23:03 GRedComeT 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the 阅读全文
posted @ 2019-07-26 21:29 GRedComeT 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Given N numbers, X1, X2, ... , XN, let us calculate the difference of every pair of numbers: ∣Xi - Xj∣ (1 ≤ i < j ≤ N). We can get C(N,2) differences 阅读全文
posted @ 2019-07-26 20:36 GRedComeT 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Given a N × N matrix A, whose element in the i-th row and j-th column Aij is an number that equals i2 + 100000 × i + j2 - 100000 × j + i × j, you are 阅读全文
posted @ 2019-07-26 17:33 GRedComeT 阅读(184) 评论(0) 推荐(0) 编辑
摘要: The WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you tell us it height? The 阅读全文
posted @ 2019-07-26 15:06 GRedComeT 阅读(115) 评论(0) 推荐(0) 编辑