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…
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(…
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…
Today when taking a bath I got a good idea that it is an efficient and interesting way to learn a new programming language: (These days I learn Python from the Python manual and feel a little bored....) Learn programming by trying some little or larg…
E. Vladik and cards time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vladik was bored on his way home and decided to play the following game. He took n cards and put them in a row in front…