水题
囧九
大学萌新
展开
-
B - Vanya and Books
Vanya got an important task — he should enumerate books in the library and label each book with its number. Each of the n books should be assigned with a number from 1 to n. Naturally, distinct books ...原创 2018-07-26 11:29:36 · 162 阅读 · 0 评论 -
F - 七夕节 HDU - 1215
七夕节那天,月老来到数字王国,他在城门上贴了一张告示,并且和数字王国的人们说:"你们想知道你们的另一半是谁吗?那就按照告示上的方法去找吧!" 人们纷纷来到告示前,都想知道谁才是自己的另一半.告示如下: 数字N的因子就是所有比N小又能被N整除的所有正整数,如12的因子有1,2,3,4,6. 你想知道你的另一半吗? Input 输入数据的第一行是一个数字T(1<=T<=...原创 2018-07-30 20:29:49 · 172 阅读 · 0 评论 -
A - Fast Fourier Transform Gym - 101755A
Statements Pavel had two positive integers a and b. He found their sum s and greatest common divisor g, and forgot a and b after that. Help him to restore the original numbers. Input A single line ...原创 2018-07-31 14:11:27 · 197 阅读 · 0 评论 -
J - Mobius Inversion Theorem Gym - 101755J
Statements There are n sticks, the i-th of which has length ai. Alex wants to assemble from them as many parallelograms as possible simultaneously, with each stick used at most in one parallelogram. ...原创 2018-07-31 14:12:32 · 244 阅读 · 0 评论 -
H - Sudoku HDU - 5547
Yi Sima was one of the best counselors of Cao Cao. He likes to play a funny game himself. It looks like the modern Sudoku, but smaller. Actually, Yi Sima was playing it different. First of all, he tr...原创 2018-08-07 15:59:26 · 398 阅读 · 0 评论 -
L - 4个数和为0 51Nod - 1267
给出N个整数,你来判断一下是否能够选出4个数,他们的和为0,可以则输出"Yes",否则输出"No"。 Input 第1行,1个数N,N为数组的长度(4 <= N <= 1000) 第2 - N + 1行:Aii(-10^9 <= Aii <= 10^9) Output 如果可以选出4个数,使得他们的和为0,则输出"Yes",否则输出"No"。 Sample In原创 2018-08-24 20:30:35 · 154 阅读 · 0 评论 -
Preparing for Exams Gym - 101778G
Ran Mouri and Sonoko Suzuki are preparing for the final exams. They decided to study mathematics as it is the hardest subject for them. While they are solving mathematical problems, they faced trouble...原创 2018-09-05 08:17:48 · 311 阅读 · 0 评论