結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
![]() |
提出日時 | 2018-12-05 01:39:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 5,000 ms |
コード長 | 327 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-14 07:15:45 |
合計ジャッジ時間 | 1,247 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
import math def proc(x,y): x_lst = list(x) x_lst.sort() y_lst = list(y) y_lst.sort() for i in range(len(x_lst)): if x_lst[i] != y_lst[i] : return False else : return True x = input() y = input() if proc(x,y): print('YES') else: print('NO')