結果

問題 No.504 ゲーム大会(ランキング)
ユーザー ikdikd
提出日時 2017-04-21 22:44:39
言語 Ruby
(3.3.0)
結果
AC  
実行時間 206 ms / 2,000 ms
コード長 94 bytes
コンパイル時間 217 ms
コンパイル使用メモリ 11,368 KB
実行使用メモリ 15,408 KB
最終ジャッジ日時 2023-09-27 11:28:33
合計ジャッジ時間 3,497 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
15,068 KB
testcase_01 AC 72 ms
15,220 KB
testcase_02 AC 73 ms
15,300 KB
testcase_03 AC 70 ms
15,228 KB
testcase_04 AC 74 ms
15,336 KB
testcase_05 AC 74 ms
15,172 KB
testcase_06 AC 71 ms
15,156 KB
testcase_07 AC 197 ms
15,240 KB
testcase_08 AC 199 ms
15,244 KB
testcase_09 AC 201 ms
15,108 KB
testcase_10 AC 198 ms
15,352 KB
testcase_11 AC 206 ms
15,156 KB
testcase_12 AC 197 ms
15,408 KB
testcase_13 AC 190 ms
15,280 KB
testcase_14 AC 205 ms
15,228 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i

r, k=1, gets.to_i
puts r
(n-1).times do
  a=gets.to_i
  r+=1 if k<a
  puts r
end
0