結果

問題 No.784 「,(カンマ)」
ユーザー fshutofshuto
提出日時 2019-03-05 22:23:48
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 93 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 11,472 KB
実行使用メモリ 15,344 KB
最終ジャッジ日時 2023-09-05 18:57:55
合計ジャッジ時間 2,521 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,160 KB
testcase_01 WA -
testcase_02 AC 84 ms
15,328 KB
testcase_03 AC 85 ms
15,116 KB
testcase_04 AC 85 ms
15,084 KB
testcase_05 AC 84 ms
15,024 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 83 ms
15,332 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 84 ms
15,068 KB
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.chomp

(n.size-1).downto(1) do |i|
  if i % 3 == 0
    n[i,0] = ','
  end
end
puts n
0