結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー takumi-onisitakumi-onisi
提出日時 2021-04-04 13:07:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 318 ms / 3,000 ms
コード長 59 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 11,516 KB
実行使用メモリ 15,416 KB
最終ジャッジ日時 2023-08-27 13:47:28
合計ジャッジ時間 4,604 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,240 KB
testcase_01 AC 84 ms
15,024 KB
testcase_02 AC 84 ms
15,140 KB
testcase_03 AC 84 ms
15,152 KB
testcase_04 AC 88 ms
15,172 KB
testcase_05 AC 84 ms
15,136 KB
testcase_06 AC 87 ms
15,136 KB
testcase_07 AC 92 ms
15,396 KB
testcase_08 AC 113 ms
15,244 KB
testcase_09 AC 137 ms
15,240 KB
testcase_10 AC 274 ms
15,244 KB
testcase_11 AC 279 ms
15,416 KB
testcase_12 AC 284 ms
15,416 KB
testcase_13 AC 290 ms
15,196 KB
testcase_14 AC 290 ms
15,264 KB
testcase_15 AC 295 ms
15,380 KB
testcase_16 AC 318 ms
15,156 KB
testcase_17 AC 83 ms
15,244 KB
testcase_18 AC 83 ms
15,128 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

amount = 0
gets.to_i.times{ amount += gets.to_i }
p amount 
0