摘要:#include #include #include #include #include #include using namespace std; #define ll long long const int N =1e5+9; int t,n,a[N]; int b[50]; /* 要想两个数的异或结果比两者都大 必须两数的首位都为1,其他位...
阅读全文
摘要:At 0 second, the LED light is initially off. After BaoBao presses the button 2 times, the LED light turns on and the value of the counter changes to 1
阅读全文
摘要:#define ll long long const int N =1e5+9; int t; ll ans,tmp; char s[N]; int main() { scanf("%d",&t); while(t--) { scanf("%s",s); int l=strlen(s)...
阅读全文
摘要:In computability theory, the halting problem is the problem of determining, from a description of an arbitrary computer program, whether the program w
阅读全文
摘要:1 string ss="jessie"; 2 int main() 3 { 4 scanf("%d",&t); 5 sort(ss.begin(),ss.end()); 6 while(t--){ 7 string s; 8 cin>>s; 9 for(int i=0;i='A'&&s[i]<='Z') s[i]+=32;//不区分大...
阅读全文
摘要:131072K One day in the jail, F·F invites Jolyne Kujo (JOJO in brief) to play tennis with her. However, Pucci the father somehow knows it and wants to
阅读全文
摘要:In a world where ordinary people cannot reach, a boy named "Koutarou" and a girl named "Sena" are playing a video game. The game system of this video
阅读全文
摘要:Distance Queries Time Limit: 2000MS Memory Limit: 30000K Total Submissions: 16447 Accepted: 5768 Case Time Limit: 1000MS Description Farmer John's cow
阅读全文
摘要:262144K After Incident, a feast is usually held in Hakurei Shrine. This time Reimu asked Kokoro to deliver a Nogaku show during the feast. To enjoy th
阅读全文
摘要:There's a beach in the first quadrant. And from time to time, there are sea waves. A wave ( xx , yy ) means the wave is a rectangle whose vertexes are
阅读全文
摘要:Dancing Stars on Me Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 2460 Accepted Submission(s)
阅读全文
摘要:Have you ever played the video game Minecraft? This game has been one of the world's most popular game in recent years. The world of Minecraft is made
阅读全文
摘要:John is a manager of a CPU chip factory, the factory produces lots of chips everyday. To manage large amounts of products, every processor has a seria
阅读全文
摘要:1 2 3 4 5 6 是不换行的 --> 7 8 1到100以内的完数有 : 9 10 "); 21 } 22 } 23 %> 24 25 26 27 28 程序片创建Date对象 : "+date+""); int m=100; %> 的因子之和是(不包括) 1...
阅读全文
摘要:262144K Ryuji is not a good student, and he doesn't want to study. But there are n books he should learn, each book has its knowledge a[i]a[i]. Unfort
阅读全文
摘要:262144K Morgana is learning computer vision, and he likes cats, too. One day he wants to find the cat movement from a cat video. To do this, he extrac
阅读全文
摘要:Mur loves hash algorithm, and he sometimes encrypt another one's name, and call him with that encrypted value. For instance, he calls Kimura KMR, and
阅读全文
摘要:Alisha’s Party Time Limit: 3000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 7514 Accepted Submission(s): 174
阅读全文
摘要:MPI Maelstrom Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 12087 Accepted: 7464 Description BIT has recently taken delivery of their new
阅读全文
摘要:A prime number (or a prime) is a natural number greater than 11 that cannot be formed by multiplying two smaller natural numbers. Now lets define a nu
阅读全文
摘要:"Oh, There is a bipartite graph.""Make it Fantastic." X wants to check whether a bipartite graph is a fantastic graph. He has two fantastic numbers, a
阅读全文
摘要:Feeling hungry, a cute hamster decides to order some take-away food (like fried chicken for only 3030 Yuan). However, his owner CXY thinks that take-a
阅读全文
摘要:A square-free integer is an integer which is indivisible by any square number except 1. For example, 6 = 2 * 3,6=2*3 is square-free, but 12 = 2^2 * 3,
阅读全文
摘要:题意:给个小数p(0<=p<1),求差值与其最小的不可约分分数且分母不能超过n。
阅读全文
摘要:262144K There are NN cities in the country, and MM directional roads from uu to v(1\le u, v\le n)v(1≤u,v≤n). Every road has a distance c_ici. Haze is
阅读全文
摘要://Poj 3254 Corn Fields Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 20258 Accepted: 10633 Description Farmer John has purchased a lush n
阅读全文
摘要:G. Snake Rana time limit per test 4.0 s memory limit per test 256 MB input standard input output standard output G. Snake Rana time limit per test 4.0
阅读全文