- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 UVA 101 The Blocks Problem STL+模拟
题目:给你n个方块,有四种操作: 1.move a onto b,把a和b上面的方块都放回原来位置,然后把a放到b上面; 2.move a over b,把a上面的放回原处,然后把a放在b所在的方块堆的上面; 3.pile a onto b,把b上面的放回原来位置,然后把a和a上面的方块整体放到b上面; ...
2018-07-23 17:25:35 159
原创 CSU 2089 Bit String Reordering(模拟)
Description You have to reorder a given bit string as specified. The only operation allowed is swapping adjacent bit pairs. Please write a program that calculates the minimum number of swaps required...
2018-07-23 01:11:26 177
原创 UVA 10474 Where is the Marble?
Raju and Meena love to play with Marbles. They have got a lot of marbles with numbers written on them. At the beginning, Raju would place the marbles one after another in ascending order of the number...
2018-07-23 00:47:17 127
原创 Gym 101550G (CSU 2018) Game Rank 模拟
Description The gaming company Sandstorm is developing an online two player game. You have been asked to implement the ranking system. All players have a rank determining their playing strength which...
2018-07-22 23:57:31 310
原创 ACM程序对拍
刷过ACM题的同学应该都有这种体会,感觉自己已经考虑的很充分了,但就是一直wa,这时候,如果有一份能够保证100%正确的代码,再加上题目数据比较好利用随机数创造时,便可以使用对拍来找到错在哪些数据上了。 我们需要三个exe文件加一个bat文件再加两个txt文件。首先我们先创建一个文件夹,在文件夹里新建一个txt文本文档,输入以下代码后把后缀改为.bat :again data.exe...
2018-07-19 00:02:21 248
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人