![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
狂飙的小蜗牛呦
当你想要放弃,想想为什么坚持这么久
展开
-
Binary String Minimizing CodeForces - 1256D 思维(好题)
You are given a binary string of length n (i. e. a string consisting of n characters ‘0’ and ‘1’).In one move you can swap two adjacent characters of the string. What is the lexicographically minimum...原创 2019-11-05 22:38:33 · 437 阅读 · 1 评论 -
Minimize the Permutation CodeForces - 1256B 思维+暴力
You are given a permutation of length n. Recall that the permutation is an array consisting of n distinct integers from 1 to n in arbitrary order. For example, [2,3,1,5,4] is a permutation, but [1,2,2...原创 2019-11-05 10:02:53 · 803 阅读 · 2 评论 -
Payment Without Change CodeForces - 1256A 简单思维
Payment Without ChangeYou have a coins of value n and b coins of value 1. You always pay in exact change, so you want to know if there exist such x and y that if you take x (0≤x≤a) coins of v...原创 2019-11-05 09:50:17 · 571 阅读 · 0 评论 -
World Cup CodeForces - 996B 思维(推公式)
B. World Cuptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAllen wants to enter a fan zone that occupies a round square and has n entrances....原创 2019-11-04 12:29:35 · 162 阅读 · 0 评论