Dr.KeK's blog

By Dr.KeK, history, 9 months ago, In English

In this problem , https://mirror.codeforces.com/gym/101020/problem/E . If I use read(), which is just :

inline long long read() {
	long long x;
	cin >> x;
	return x;
}

My code gets wrong answer, but if I use cin instead it get accepted. I've never encountered anything like this before and I can't figure out why this is happened. I would really appreciate if someone could help .

Here is the AC code : https://vjudge.net/solution/48961859/GeNmFOEY9q3MPgGKvk3E

And WA : https://vjudge.net/solution/48954793/vKYy77jmBwP3Hiem9kDZ

If I change the name of read to something like nxt , I still get WA .

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it