花费 97ms 找到449018条记录
1 Codeforces Round #411(A. Fake NP; B. 3-palindrome; C. Find Amir; D.Minimum number of steps)
2017年05月05 - A. Fake NP 题解:给定一个闭区间的两个端点,试判断在此区间内所有数字的非1公因子出现最多的数字。如果有多个,给出其中一个就可以了。这道题比较讨巧的方法试直接输出2。 B. 3-palindrome 题解:题目要求用由‘a’,‘b’‘c’三个字母组成给定长度的字符串
2 Codeforces Round #411 D. Minimum number of steps
2017年05月05 - ” in the string and replace it with the string “bba”. If we have no “ab” as a substring, our job is done. Print the minimum number of steps we should perform
3 Codeforces Round #411 (Div. 2) C. Find Amir
2017年05月25 - C. Find Amir time limit per test 1 second memory limit per test 256 megabytes
4 Codeforces Round #411 (Div. 2) C. Find Amir
2017年05月05 - 题目链接:Find Amir 题目大意:给你一个n,城市编号从1到n,然后让你建路,两个点之间建一条路需要的花费是(i+j)%(n+1),然后叫你去建路,使得总花费最小 题目思路:直接绕着点转圈就好了,比如n等于10的时候,先连1-10,然后10-2,然后2-9,一直
5 Codeforces Round #411(Div. 2)C. Find Amir【思维】
2017年05月05 - C. Find Amir time limit per test 1 second
6 Codeforces Round #411 (Div. 2)D. Minimum number of steps(贪心)
2017年05月05 - " in the string and replace it with the string "bba". If we have no "ab" as a substring, our job is done. Print the minimum number of steps we should perform
7 Codeforces Round #411(Div. 2)D. Minimum number of steps【思维递推+快速幂】
2017年05月05 - in the string.InputThe first line contains the initial string consisting of letters 'a' and 'b' only with length from 1 to 106.OutputPrint the minimum number of steps
8 CodeForces#411div2 D. Minimum number of steps
2017年05月05 - D. Minimum number of steps time limit per test 1 second memory limit per test 256 megabytes input standard input
9 Codeforces Round #411 (Div. 2)C. Find Amir(想法题)
2017年05月05 - 传送门 Description A few years ago Sajjad left his school and register to another one due to security reasons. Now he wishes to find Amir, one
10 Codeforces Round #411 (Div. 2) A. Fake NP【水题】
2017年05月07 - 题目链接: http://codeforces.com/contest/805/problem/A 【中文题意】给你一个l和r,然后让你求[l,r]之间所有数的所有因子中出现最多的那个因子是哪个数字(1除外),有多个的话输出其中任意一个即可。 【思路分析】假如l==r那么这个因子

 
© 2014-2019 ITdaan.com 粤ICP备14056181号