Can someone explain why this code didn't get AC ?

Правка en1, от Dr.KeK, 2024-02-12 14:11:20

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 .

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Dr.KeK 2024-02-12 14:11:20 790 Initial revision (published)