結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
![]() |
提出日時 | 2016-06-01 21:45:59 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 5,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 77 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 06:16:39 |
合計ジャッジ時間 | 892 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
# -*- coding: utf-8 -*- __author__ = 'yuuki' S1 = raw_input() S2 = raw_input() N1 = [ord(i) for i in list(S1)] N1.sort() N2 = [ord(i) for i in list(S2)] N2.sort() for i in xrange(len(N1)): if N1[i] != N2[i]: print 'NO' exit() print 'YES'