結果

問題 No.69 文字を自由に並び替え
ユーザー soupesuteakasoupesuteaka
提出日時 2016-03-03 19:38:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 316 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 8,732 KB
最終ジャッジ日時 2023-08-20 23:15:46
合計ジャッジ時間 1,259 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,556 KB
testcase_01 AC 20 ms
8,632 KB
testcase_02 AC 20 ms
8,732 KB
testcase_03 AC 21 ms
8,588 KB
testcase_04 AC 20 ms
8,704 KB
testcase_05 AC 20 ms
8,644 KB
testcase_06 AC 20 ms
8,592 KB
testcase_07 AC 21 ms
8,716 KB
testcase_08 AC 19 ms
8,528 KB
testcase_09 AC 19 ms
8,624 KB
testcase_10 AC 20 ms
8,616 KB
testcase_11 AC 21 ms
8,616 KB
testcase_12 AC 21 ms
8,616 KB
testcase_13 AC 20 ms
8,624 KB
testcase_14 AC 20 ms
8,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: UTF-8

import sys
from math import pi
from collections import deque
from functools import reduce

### defs ###

### main ###
A = sys.stdin.readline().strip('\r\n')
B = sys.stdin.readline().strip('\r\n')
a = [c for c in A]
b = [c for c in B]
a.sort() 
b.sort()
ans = {True:'YES',False:'NO'}
print(ans[a==b])
0