結果

問題 No.656 ゴルフ
ユーザー finefine
提出日時 2018-03-02 22:21:56
言語 Ruby
(3.2.2)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 70 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 11,356 KB
実行使用メモリ 15,304 KB
最終ジャッジ日時 2023-09-03 22:20:04
合計ジャッジ時間 1,594 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,092 KB
testcase_01 AC 82 ms
15,044 KB
testcase_02 AC 81 ms
15,028 KB
testcase_03 AC 86 ms
15,288 KB
testcase_04 AC 84 ms
15,076 KB
testcase_05 AC 84 ms
15,152 KB
testcase_06 AC 80 ms
15,096 KB
testcase_07 AC 81 ms
15,304 KB
testcase_08 AC 81 ms
15,044 KB
testcase_09 AC 81 ms
15,068 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

p gets.chomp.split('').map(&:to_i).map{|x| x == 0 ? 10 : x}.inject(:+)
0