Codeforces
wonder-wall
三分钟热度
展开
-
D. Soldier and Number Game(打表)
D. Soldier and Number Gametime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputTwo soldiers are playing a game. At the beginning first of them chooses ...原创 2018-04-08 22:04:46 · 349 阅读 · 0 评论 -
B. Easy Number Challenge
B. Easy Number Challengetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's denote d(n) as the number of divisors of a positive integer n. You a...原创 2018-04-06 21:43:47 · 348 阅读 · 0 评论 -
C. George and Job(dp,前缀和)
C. George and Jobtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe new ITone 6 has been released recently and George got really keen to buy it. U...原创 2018-04-25 21:47:51 · 255 阅读 · 0 评论 -
370C - Mittens(贪心,思维?)
C. Mittenstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA Christmas party in city S. had n children. All children came in mittens. The mittens ca...原创 2018-04-26 22:49:16 · 254 阅读 · 0 评论 -
1015B - Obtaining the String(贪心,模拟)
传送门:http://codeforces.com/contest/1015/problem/B 题意: 给定一个s序列和一个t序列,二者长度相同,判断s序列是否能够通过若干次的相邻元素交换,得到t序列,可以则输出交换次数和每次变换时左边元素的位置,否则输出-1。 思路: 遍历t序列,对于每个t[i],找到j>i,满足s[j]=t[i](找不到就输出-1),记录s[j]移...原创 2018-08-04 17:36:57 · 186 阅读 · 0 评论