动态维护(刷新:--、++)
ProLightsfxjh
这个作者很懒,什么都没留下…
展开
-
UESTC 2016 Summer Training #1 Div.2 F - Mission in Amman (A) 动态维护(刷新:--、++)
先整体的处理一遍,然后边输入操作, 边维护, 什么时候++, 什么时候-- 这样直接边跑边维护, 挺常见的, Codeforces上见过好几次^_^原创 2016-07-12 21:15:31 · 1692 阅读 · 0 评论 -
Codeforces Round #345 (Div. 2) D. Image Preview __ two pointers and pretreat
Vasya's telephone contains n photos. Photo number 1 is currently opened on the phone. It is allowed to move left and right to the adjacent photo by swiping finger over the screen. If you swipe left from the first photo, you reach photo n. Similarly, by swi原创 2016-04-14 11:31:10 · 1664 阅读 · 0 评论