Comments
0

Hello — I received the plagiarism notice for my submission 349871347 to problem 2171B.

I did not copy other users’ code. I wrote the solution myself during the contest. To support this, My submission time for that particular question was 20:14 UTC +5.5 20 Nov 2025 and the other person's timing was 21:03 UTC +5.5 20 Nov 2025 I don't know the person and I have written my code myself If you look at the code, it is very simple so it has a high chance to coincide in my opinion

Please let me know if you need any additional logs. I’m happy to cooperate to resolve this. Thank you.

Here is my solution : ~~~~~ t = int(input()) for _ in range(t): n = int(input()) a = list(map(int, input().split())) if a[0] != -1 and a[-1] != -1: ans = abs(a[-1] — a[0]) else: ans = 0 if a[0] == -1 and a[-1] == -1: a[0] = 0 a[-1] = 0 elif a[0] == -1: a[0] = a[-1] elif a[-1] == -1: a[-1] = a[0] for i in range(n): if a[i] == -1: a[i] = 0 print(ans) print(*a) ~~~~~

hi it was nice contest