Zhy's Blog~

View My GitHub Profile

Archive
Categories
About

Codeforces Round #338 (Div. 2)

  CF#338,题目质量不错,难度A、D正常,B、C稍高,分数分配不科学,榜被带歪了。
  正式参赛(zhy),卡在B题,略慌,WA了若干次幡然醒悟;C题成最大遗憾,稳稳的一场又给跪了。Rank 172,rating +32,离紫名还差一点。请允许我做一个悲伤的表情 :( 。


while(st < M){
	int l = st,r = M-1;
	while(l < r){
		int m = (l+r+1)/2;
		if (check(st,m)) l = m;
		else r = m-1;
	}
//**comment this and you'll get WA.
	check(st,l);
//**
	ans[anscnt][0] = ll+1;
	ans[anscnt][1] = rr+1;
	anscnt++;
	st = l+1;
}

  
  code

© 个人原创,未经允许,不得转载!

Copyright © 2015-2016 zhyack. All Rights Reserved.

如对文章有任何疑问,请移步问题聚集区一览~