結果

問題 No.559 swapAB列
ユーザー letrangerjpletrangerjp
提出日時 2017-08-25 23:04:22
言語 Ruby
(3.3.0)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 49 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 11,284 KB
実行使用メモリ 15,376 KB
最終ジャッジ日時 2023-08-05 19:00:54
合計ジャッジ時間 1,867 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,300 KB
testcase_01 AC 87 ms
15,240 KB
testcase_02 AC 83 ms
15,104 KB
testcase_03 AC 84 ms
15,244 KB
testcase_04 AC 83 ms
15,288 KB
testcase_05 AC 83 ms
15,376 KB
testcase_06 AC 89 ms
15,020 KB
testcase_07 AC 87 ms
15,168 KB
testcase_08 AC 86 ms
15,020 KB
testcase_09 AC 86 ms
15,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
Syntax OK

ソースコード

diff #

gets
$.+=$1.size while$_.sub! /(B+)A/,'A\1'
p$.-1
0