This is my submission My code has wrong answer on 11th test case, But I think my solution was right.
546B For every pair of soldiers one of them should get a badge with strictly higher factor than the second one. Exact values of their factors aren't important, they just need to have distinct factors.
And this is my output. They're all distinct integer and none of them is decreased.
Can you tell me which part I am wrong ? Thanks.