「CF525X」Codeforces Round #297 (Div. 2)

2015年5月16日2,8741

A. Vitaliy and Pie

模拟

B. Pasha and String

前缀和记录一下每个点的翻转次数

C. Ilya and Sticks

排序后从大到小贪心

D. Arthur and Walls

如果某四个格子只有一个*,则把它变成.

E.Anya and Cubes

折半搜索一下

 

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Recent comment authors
  Subscribe  
提醒
trackback

[…] 我:先记录一下不同的位置各翻转了多少次,同一区间翻转两次相当于没有进行任何操作,所以直接%2。然后模拟一下输出 hzwer:差分+前缀和记录翻转 传送门 […]