Submission #29615260
Source Code Expand
s = input()
t = input()
s = sorted(s)
t = sorted(t, reverse=True)
if s < t:
print("Yes")
else:
print("No")
Submission Info
| Submission Time | |
|---|---|
| Task | B - Two Anagrams |
| User | Pro_ktmr |
| Language | PyPy3 (7.3.0) |
| Score | 200 |
| Code Size | 123 Byte |
| Status | AC |
| Exec Time | 61 ms |
| Memory | 61120 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt |
| All | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 0_04.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 0_00.txt | AC | 61 ms | 60908 KiB |
| 0_01.txt | AC | 51 ms | 60976 KiB |
| 0_02.txt | AC | 49 ms | 60768 KiB |
| 0_03.txt | AC | 51 ms | 60960 KiB |
| 0_04.txt | AC | 45 ms | 60932 KiB |
| 1_00.txt | AC | 48 ms | 61120 KiB |
| 1_01.txt | AC | 48 ms | 60916 KiB |
| 1_02.txt | AC | 49 ms | 60800 KiB |
| 1_03.txt | AC | 50 ms | 60888 KiB |
| 1_04.txt | AC | 48 ms | 60896 KiB |
| 1_05.txt | AC | 50 ms | 60752 KiB |
| 1_06.txt | AC | 51 ms | 60944 KiB |
| 1_07.txt | AC | 49 ms | 60884 KiB |
| 1_08.txt | AC | 48 ms | 60912 KiB |
| 1_09.txt | AC | 51 ms | 60964 KiB |