UESTC || cdoj
楚江枫
不忘初心,方得始终
展开
-
【Uestc 1423 Running Steps】+ 排列组合
B Running Steps The coach wants his team members to run up the stadium steps taking either one or two steps with each stride so that: a) The number of two step strides taken by each leg is the sam原创 2017-03-03 18:37:07 · 414 阅读 · 0 评论 -
【uestc 1425 D Farey Sequence Length】+ 打表
D Farey Sequence Length Given a positive integer, N, the sequence of all fractions a / b with (0 < a b), (1 < b N) and a and b relatively prime, listed in increasing order, is called the Farey原创 2017-03-04 11:26:23 · 423 阅读 · 0 评论 -
【UESTC 1386 卿大爷的三个女友】+ KMP
卿大爷发现了一个字符串,他要在上面找到3 3 个女朋友的名字。他的一个女朋友名字是字符串的前缀,一个是后缀,还有一个在中间的某个位置(三者不互相重叠)。他想让你告诉他他女朋友名字的最大长度是多少。也就是说找到一个最长的子串使得它既是前缀又是后缀,还在中间,求这个子串的长度。 Input 第一行一个数字N(N<=100) N(N<=100) ,代表有N组数据。 接下来N行,每原创 2017-03-29 21:04:48 · 416 阅读 · 0 评论 -
【UESTC 1357 柱爷与最大区间和】+ 最大前缀和 + 最大后缀和
柱爷与最大区间和 Time Limit: 1000/1000MS (Java/Others) Memory Limit: 131071/65535KB (Java/Others) Submit Status 柱爷爱思考,凡事喜欢举一反三,常常能想到别人没想过的问题。比如最大区间和这个问题:在一数列上选出一段区间,使得这段区间和最大。柱爷想:如果选出两段区间(不相邻)会怎样呢?柱爷很快想到了答原创 2017-03-30 18:16:54 · 1108 阅读 · 0 评论 -
【UESTC 1513 简单的数学题】
简单的数学题 Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others) Submit Status 这是一道简单的数学题,简单到题目只给你一个正整数N,而你则输出一个M,这个M是由N的各个位数重新排列而来的(比如,N=123,则M可以为123,213,321,312,132,231)。由于M原创 2017-03-26 20:06:47 · 1148 阅读 · 0 评论 -
【UESTC 1516 Euclid's Game】
Euclid’s Game Time Limit: 1000MSMemory Limit: 65536K Total Submissions: 9356Accepted: 3830 Description Two players, Stan and Ollie, play, starting with two natural numbers. Stan, the first player,原创 2017-05-03 21:32:20 · 220 阅读 · 0 评论