結果
問題 | No.1335 1337 |
ユーザー | gemmaro |
提出日時 | 2021-04-10 15:28:05 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 83 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 452 ms |
コンパイル使用メモリ | 11,232 KB |
実行使用メモリ | 15,364 KB |
最終ジャッジ日時 | 2023-09-08 11:28:54 |
合計ジャッジ時間 | 3,294 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 81 ms
15,332 KB |
testcase_01 | AC | 82 ms
15,240 KB |
testcase_02 | AC | 80 ms
15,304 KB |
testcase_03 | AC | 79 ms
15,364 KB |
testcase_04 | AC | 80 ms
15,276 KB |
testcase_05 | AC | 81 ms
15,092 KB |
testcase_06 | AC | 81 ms
15,304 KB |
testcase_07 | AC | 80 ms
15,128 KB |
testcase_08 | AC | 83 ms
15,148 KB |
testcase_09 | AC | 78 ms
15,144 KB |
testcase_10 | AC | 79 ms
15,252 KB |
testcase_11 | AC | 79 ms
15,272 KB |
testcase_12 | AC | 82 ms
15,196 KB |
testcase_13 | AC | 82 ms
15,148 KB |
testcase_14 | AC | 80 ms
15,048 KB |
testcase_15 | AC | 80 ms
15,148 KB |
testcase_16 | AC | 80 ms
15,272 KB |
testcase_17 | AC | 80 ms
15,300 KB |
コンパイルメッセージ
Syntax OK
ソースコード
# frozen_string_literal: true def solve A.chars.then do |map| S.chars .map { (integer = _1.integer?) ? map[integer] : _1 } .join end end class String def integer? Integer self rescue StandardError false end end A, S = 2.times.map { gets.chomp } puts solve