結果
問題 | No.69 文字を自由に並び替え |
ユーザー | tshig |
提出日時 | 2016-08-02 15:40:59 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 87 ms / 5,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 67 ms |
コンパイル使用メモリ | 11,560 KB |
実行使用メモリ | 15,300 KB |
最終ジャッジ日時 | 2023-08-20 23:26:06 |
合計ジャッジ時間 | 2,143 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 87 ms
15,164 KB |
testcase_01 | AC | 80 ms
15,108 KB |
testcase_02 | AC | 80 ms
15,300 KB |
testcase_03 | AC | 79 ms
15,136 KB |
testcase_04 | AC | 79 ms
15,156 KB |
testcase_05 | AC | 80 ms
15,276 KB |
testcase_06 | AC | 81 ms
15,072 KB |
testcase_07 | AC | 80 ms
15,112 KB |
testcase_08 | AC | 80 ms
15,084 KB |
testcase_09 | AC | 81 ms
15,028 KB |
testcase_10 | AC | 80 ms
15,028 KB |
testcase_11 | AC | 79 ms
15,248 KB |
testcase_12 | AC | 81 ms
15,240 KB |
testcase_13 | AC | 80 ms
15,228 KB |
testcase_14 | AC | 80 ms
15,148 KB |
コンパイルメッセージ
Syntax OK
ソースコード
class Calc0069 def initialize(args) args = args.map { |l| l.chomp.split(/\s+/) } @a = args.shift.first @b = args.shift.first end def calc @a.split(//).sort == @b.split(//).sort end def run calc ? 'YES' : 'NO' end end puts Calc0069.new(STDIN.readlines).run if __FILE__ == $0