上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 22 下一页

2017年8月10日

摘要: Problem Description RXD has a tree T, with the size of n. Each edge has a cost.Define f(S) as the the cost of the minimal Steiner Tree of the set S on 阅读全文
posted @ 2017-08-10 10:44 Annetree 阅读(252) 评论(1) 推荐(0)

2017年8月9日

摘要: Problem Description As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is 阅读全文
posted @ 2017-08-09 14:42 Annetree 阅读(328) 评论(0) 推荐(0)
 
摘要: 前面四场多校可以说是惨不忍睹,只能赛后好好补题以做弥补了。 第五场多校终于拿到了自参赛以来的第一个分数。 开个坑记录一下接下来多校的参赛体会,顺便计划和监督自己补题。 点击这里获取所有官方题解 17多校1 1001 Add More Zero 水题 1002 Balala Power!(思维 排序) 阅读全文
posted @ 2017-08-09 14:31 Annetree 阅读(235) 评论(0) 推荐(0)
 
摘要: Problem Description As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is 阅读全文
posted @ 2017-08-09 11:21 Annetree 阅读(326) 评论(0) 推荐(0)
 
摘要: Problem Description As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is 阅读全文
posted @ 2017-08-09 09:41 Annetree 阅读(327) 评论(0) 推荐(0)

2017年8月5日

摘要: Problem Description Give you an array A[1..n],you need to calculate how many tuples (i,j,k) satisfy that (i<j<k) and ((A[i] xor A[j])<(A[j] xor A[k])) 阅读全文
posted @ 2017-08-05 14:49 Annetree 阅读(456) 评论(0) 推荐(0)
 
摘要: Problem Description Little Q's clock is alarming! It's time to get up now! However, after reading the time on the clock, Little Q lies down and starts 阅读全文
posted @ 2017-08-05 10:12 Annetree 阅读(401) 评论(0) 推荐(0)
 
摘要: Problem Description In order to get better results in official ACM/ICPC contests, the team leader comes up with a questionnaire. He asked everyone in 阅读全文
posted @ 2017-08-05 09:40 Annetree 阅读(167) 评论(0) 推荐(0)

2017年8月3日

摘要: Description A prefix of a string is a substring starting at the beginning of the given string. The prefixes of "carbon" are: "c", "ca", "car", "carb", 阅读全文
posted @ 2017-08-03 10:38 Annetree 阅读(125) 评论(0) 推荐(0)
 
摘要: Problem Description Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表 阅读全文
posted @ 2017-08-03 10:15 Annetree 阅读(270) 评论(0) 推荐(0)
 
摘要: 1.遇到精度用C++ 2.G++内存超限,C++过了 其他都用G++ 阅读全文
posted @ 2017-08-03 10:10 Annetree 阅读(193) 评论(0) 推荐(0)

2017年8月2日

摘要: 令Pi表示第i个素数。现任给两个正整数M <= N <= 104,请输出PM到PN的所有素数。 输入格式: 输入在一行中给出M和N,其间以空格分隔。 输出格式: 输出从PM到PN的所有素数,每10个数字占1行,其间以空格分隔,但行末不得有多余空格。 输入样例: 输出样例: 阅读全文
posted @ 2017-08-02 14:26 Annetree 阅读(190) 评论(0) 推荐(0)
 
摘要: 给定一系列正整数,请按要求对数字进行分类,并输出以下5个数字: A1 = 能被5整除的数字中所有偶数的和; A2 = 将被5除后余1的数字按给出顺序进行交错求和,即计算n1-n2+n3-n4...; A3 = 被5除后余2的数字的个数; A4 = 被5除后余3的数字的平均数,精确到小数点后1位; A 阅读全文
posted @ 2017-08-02 14:13 Annetree 阅读(184) 评论(0) 推荐(0)
 
摘要: 给定一句英语,要求你编写程序,将句中所有单词的顺序颠倒输出。 输入格式:测试输入包含一个测试用例,在一行内给出总长度不超过80的字符串。字符串由若干单词和若干空格组成,其中单词是由英文字母(大小写有区分)组成的字符串,单词之间用1个空格分开,输入保证句子末尾没有多余的空格。 输出格式:每个测试用例的 阅读全文
posted @ 2017-08-02 13:22 Annetree 阅读(123) 评论(0) 推荐(0)
 
摘要: 一个数组A中存有N(N>0)个整数,在不允许使用另外数组的前提下,将每个整数循环向右移M(M>=0)个位置,即将A中的数据由(A0A1……AN-1)变换为(AN-M …… AN-1 A0 A1……AN-M-1)(最后M个数循环移至最前面的M个位置)。如果需要考虑程序移动数据的次数尽量少,要如何设计移 阅读全文
posted @ 2017-08-02 10:55 Annetree 阅读(163) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 22 下一页