Are You Coding Me?

In the year 1992 AD, little Pranoti started to learn how to write. She already figured out that her …

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

There is absolutely something wrong with the problem.
Python submissions are not working!!
The following code is right in every aspect but yet generates a Wrong Answer.

for i in range(int(input())):
	print(input()[::-1])

but this submission wrtten in C++ follows the absolutely same logic and yet is Accepted?
Link to the code is here.

#include <bits/stdc++.h>
using namespace std;
int main() {
	int t;
	cin >> t;
	while(t--) {
		string s;
		cin >> s;
		reverse(s.begin(),s.end());
		cout << s <<endl;
	}
	return 0;
}

I think there may be something wrong. @hjr265

1 Like

Thank you, @touhidur!

The test I/O had some unnecessary space characters. The files have been updated and your Python submission has been rejudged.

https://toph.co/s/290759