![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
暴力
wxl7777
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #116 (Div. 2, C. Letter
Patrick has just finished writing a message to his sweetheart Stacey when he noticed that the message didn't look fancy. Patrick was nervous while writing the message, so some of the letters there wer...原创 2019-01-19 22:35:30 · 228 阅读 · 0 评论 -
[Offer收割]编程练习赛95
题目1 : 浇花问题描述小Hi在一条小路上种植了一排月季,总共有N株。这条小路的一端是一个水龙头。N株月季距离水龙头由近到远的距离依次是A1, A2, ... AN,每天需要浇水的量依次是B1, B2, ... BN。 现在小Hi有一个容量是C的水壶。他从水龙头出发,拎着灌满的水壶,依次去浇灌第1株、第2株、第3株…… 如果浇完第K株时,小Hi发现水壶中剩余的水量不足以浇灌第K+1株...原创 2019-03-16 14:11:01 · 280 阅读 · 0 评论 -
Codeforces Round #547 (Div. 3) C D E
C. Polycarp Restores Permutationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAn array of integersp1,p2,…,pnp1,p2,…,pnis cal...原创 2019-03-31 18:34:05 · 179 阅读 · 0 评论 -
D. Ehab and the Expected XOR Problem
outputstandard outputGiven two integersnnandxx, construct an array that satisfies the following conditions:for any elementaiaiin the array,1≤ai<2n1≤ai<2n; there is nonon-emptysubs...原创 2019-06-06 22:47:00 · 245 阅读 · 0 评论 -
A. Mafia
One daynfriends gathered together to play "Mafia". During each round of the game some player must be the supervisor and othern - 1people take part in the game. For each person we know in how many r...原创 2019-06-15 21:54:00 · 219 阅读 · 0 评论 -
A. Primes or Palindromes?
题目链接:http://codeforces.com/problemset/problem/568/ARikhail Mubinchik believes that the current definition of prime numbers is obsolete as they are too complex and unpredictable. A palindromic number...原创 2019-06-15 22:01:55 · 189 阅读 · 0 评论