будьте уважні, i та j не впорядковані
Gnny Thank you. You are really life-saver :)
I wrote the code right it even gives me right output but when sending it comes with wrong answers
user910298 input in this problem includes multiple series of number pairs, be sure to read them all, not just the first one