結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
![]() |
提出日時 | 2018-09-14 20:21:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 295 bytes |
コンパイル時間 | 306 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-14 07:09:46 |
合計ジャッジ時間 | 1,231 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
def main():A = input()B = input()count = 0A_list = list(A)B_list = list(B)A_list.sort()B_list.sort()for i in range(len(A_list)):if(A_list[i] == B_list[i]):count += 1if(count == len(A_list)):print("YES")else:print("NO")if __name__ == '__main__':main()