A. I'm bored with life time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Holidays have finished. Thanks to the help of the hacker Leha, Noora managed to enter the university of her dreams whi…
B. Crossword solving time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Erelong Leha was bored by calculating of the greatest common divisor of two factorials. Therefore he decided to solve so…
A. I'm bored with life Holidays have finished. Thanks to the help of the hacker Leha, Noora managed to enter the university of her dreams which is located in a town Pavlopolis. It's well known that universities provide students with dormitory for…
By virtue of this superior quality, this product is often sold out of stockin many areas. 我们的产品因其优秀的质量,在很多地区经常脱销. The soil in this part of the world is not rich enough to sustain a large population. 这里的土地不够肥沃,无法供养大量的人口. She had earlier resigned her p…
给出一个整数集,其中包含1-n的所有整数,要求挑选出一个元素最多的子集,使得子集中任意两数的乘积不是完全平方数 (n<=10^6) 求这样一个最大子集的元素个数 #include <cstdio> #include <cstring> #include <cmath> const int N = 1000006; int b[N]; int cnt[N]; int s[N]; void init() { int i, j; memset(b, 1, sizeof(…
C. Hacker, pack your bags! time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output It's well known that the best way to distract from something is to do one's favourite thing. Job is such a thing…
Holidays have finished. Thanks to the help of the hacker Leha, Noora managed to enter the university of her dreams which is located in a town Pavlopolis. It's well known that universities provide students with dormitory for the period of university s…