Problem - 1761A - Codeforces
Problem - 1761A - Codeforces
|
riteshnub | Logout
You have +385! Wow!
HOME TOP CATALOG CONTESTS GYM PROBLEMSET GROUPS RATING EDU API CALENDAR HELP
00:00:38
Example → Submit?
input Copy
Language: GNU G++17 7.3.0
4
1 1 1 Choose
2 1 2 Choose File No file chosen
file:
3 1 1
4 1 1 Submit
output Copy
Yes
No → Problem tags
No
Yes brute force constructive algorithms
*800
Note No tag edit access
In the first test case, [1] and [1] form a valid pair.
In the second test case and the third case, we can show that such a pair of permutations → Contest materials
doesn't exist.
Announcement (en)
In the fourth test case, [1, 2, 3, 4] and [1, 3, 2, 4] form a valid pair.
Tutorial (en)
Supported by
https://codeforces.com/problemset/problem/1761/A 1/2
4/2/24, 9:00 AM Problem - 1761A - Codeforces
https://codeforces.com/problemset/problem/1761/A 2/2