摘要:
两种,不知道两种谁快。。。 inline char nc() { static char buf[100000], *p1 = buf, *p2 = buf; return p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 100000, stdin), p1 阅读全文
posted @ 2018-08-13 20:09
GoesOn
阅读(219)
评论(0)
推荐(0)
摘要:
int l=0,r=maxn-1; int ans=-1; while(l<=r) { int mid=(l+r)/2; if(check(mid)) { ans=mid; r=mid-1; } else { l=mid+1; } } if(ans 1) printf("Not Find!\n"); 阅读全文
posted @ 2018-08-13 09:13
GoesOn
阅读(129)
评论(0)
推荐(0)

浙公网安备 33010602011771号