結果

問題 No.504 ゲーム大会(ランキング)
ユーザー yocto_sothothyocto_sothoth
提出日時 2020-10-28 23:15:50
言語 Ruby
(3.3.0)
結果
AC  
実行時間 228 ms / 2,000 ms
コード長 120 bytes
コンパイル時間 569 ms
コンパイル使用メモリ 11,460 KB
実行使用メモリ 15,404 KB
最終ジャッジ日時 2023-09-29 03:52:05
合計ジャッジ時間 5,373 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,072 KB
testcase_01 AC 83 ms
15,140 KB
testcase_02 AC 82 ms
15,140 KB
testcase_03 AC 82 ms
15,244 KB
testcase_04 AC 82 ms
15,032 KB
testcase_05 AC 85 ms
15,264 KB
testcase_06 AC 84 ms
15,080 KB
testcase_07 AC 223 ms
15,332 KB
testcase_08 AC 218 ms
15,228 KB
testcase_09 AC 219 ms
15,388 KB
testcase_10 AC 222 ms
15,404 KB
testcase_11 AC 223 ms
15,392 KB
testcase_12 AC 223 ms
15,208 KB
testcase_13 AC 215 ms
15,192 KB
testcase_14 AC 228 ms
15,212 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
a0 = gets.to_i
rank = 1
puts rank

(n - 1).times do
  a = gets.to_i
  rank += 1 if a0 < a
  puts rank
end
0