結果

問題 No.784 「,(カンマ)」
ユーザー letrangerjpletrangerjp
提出日時 2019-02-08 21:23:46
言語 Ruby
(3.1.1p18 )
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 45 bytes
コンパイル時間 30 ms
使用メモリ 14,072 KB
最終ジャッジ日時 2023-01-28 14:21:15
合計ジャッジ時間 1,881 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 69 ms
13,976 KB
testcase_01 AC 70 ms
13,792 KB
testcase_02 AC 70 ms
14,072 KB
testcase_03 AC 70 ms
13,788 KB
testcase_04 AC 70 ms
13,808 KB
testcase_05 AC 71 ms
13,780 KB
testcase_06 AC 71 ms
13,868 KB
testcase_07 AC 70 ms
14,068 KB
testcase_08 AC 71 ms
13,804 KB
testcase_09 AC 70 ms
13,868 KB
testcase_10 AC 69 ms
13,800 KB
testcase_11 AC 70 ms
13,908 KB
testcase_12 AC 69 ms
13,792 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator
Syntax OK

ソースコード

diff #

#!ruby -p
gsub /(\d)(?=(\d{3})+(?!\d))/,'\1,'
0