In this problem , https://codeforces.me/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 .