結果

問題 No.504 ゲーム大会(ランキング)
ユーザー finefine
提出日時 2017-04-21 22:23:04
言語 Ruby
(3.2.2)
結果
AC  
実行時間 468 ms / 2,000 ms
コード長 116 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 11,568 KB
実行使用メモリ 16,832 KB
最終ジャッジ日時 2023-09-27 11:08:46
合計ジャッジ時間 5,548 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,108 KB
testcase_01 AC 81 ms
15,136 KB
testcase_02 AC 82 ms
15,124 KB
testcase_03 AC 83 ms
15,128 KB
testcase_04 AC 81 ms
15,288 KB
testcase_05 AC 84 ms
15,096 KB
testcase_06 AC 84 ms
15,288 KB
testcase_07 AC 454 ms
16,668 KB
testcase_08 AC 468 ms
16,600 KB
testcase_09 AC 461 ms
16,592 KB
testcase_10 AC 458 ms
16,812 KB
testcase_11 AC 460 ms
16,732 KB
testcase_12 AC 458 ms
16,644 KB
testcase_13 AC 453 ms
16,532 KB
testcase_14 AC 459 ms
16,832 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
a = $<.map(&:to_i)
y = 1
p y
1.upto(n - 1) do |i|
    if a[0] < a[i]
       y += 1
    end
    p y
end
0