摘要: The Flee Plan of Groundhogdfs相向而行就距离-3,时间+1背道而驰就距离-1,时间+1注意土拨鼠可以不走,特判就好 #include <bits/stdc++.h> #define inf 2333333333333333 #define N 1000010 #defin 阅读全文
posted @ 2020-08-08 15:42 WeiAR 阅读(294) 评论(0) 推荐(0)
摘要: https://ac.nowcoder.com/acm/contest/5674/F 做法:伪单调队列按值升序排序,如果够m了就更新答案同时pop队首 #include <bits/stdc++.h> #define inf 2333333333333333 #define N 3000010 #d 阅读全文
posted @ 2020-08-08 14:56 WeiAR 阅读(188) 评论(0) 推荐(0)
摘要: Groundhog and 2-Power Representation 牛客多校A python + 栈乱搞 ans=0 c=list(input()) n=int(len(c)) c.insert(0,'s') k=[] ans=[] tot=int(0) def ksm(a,b): r=int 阅读全文
posted @ 2020-08-08 13:36 WeiAR 阅读(181) 评论(0) 推荐(0)