結果
問題 |
No.69 文字を自由に並び替え
|
ユーザー |
|
提出日時 | 2016-04-03 01:00:16 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 659 ms |
コンパイル使用メモリ | 7,076 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 06:12:38 |
合計ジャッジ時間 | 690 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
-- yukicoder My Practice -- author: Leonardone @ NEETSDKASU a = io.read() b = io.read() ta = {} tb = {} for i = 1, a:len() do ta[i] = a:byte(i) tb[i] = b:byte(i) end table.sort(ta) table.sort(tb) ans = 'YES' for i = 1, a:len() do if ta[i] ~= tb[i] then ans = 'NO' break end end print(ans)