bored】的更多相关文章

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…
https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=5375 #include<stdio.h> #include<iostream> #include<algorithm> #include<string.h> using namespace std; int main() { ]…
给出一个整数集,其中包含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(…
这个故事告诉我们,WA了一定要找自己的原因... ... 当我开始用set去做的时候,发现一直过不去,一开始忘了把初始排名加进去,后来忘了第0秒,第0秒第一的id = 1 这个题目的做法也不只这一种,应该说这一种是最偷懒的. 代码如下: #include<iostream> #include<cstring> #include<cstdio> #include<set> using namespace std; #define N 100005 int s[…
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…
[题目链接]:http://codeforces.com/contest/822/problem/A [题意] 让你求a!和b!的gcd min(a,b)<=12 [题解] 哪个小就输出那个数的阶乘 [Number Of WA] 0 [反思] [完整代码] #include <bits/stdc++.h> using namespace std; #define lson l,m,rt<<1 #define rson m+1,r,rt<<1|1 #define L…
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…