-
-
Save Eckankar/6851436 to your computer and use it in GitHub Desktop.
Fwnies' solution to NCPC 2013 problem G
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| n = int(raw_input()) | |
| l1 = raw_input() | |
| l2 = raw_input() | |
| flipped = all(x <> y for x, y in zip(l1, l2)) | |
| if n % 2 == 0: | |
| res = l1 == l2 | |
| else: | |
| res = flipped | |
| if res: | |
| print 'Deletion succeeded' | |
| else: | |
| print 'Deletion failed' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment