結果

問題 No.504 ゲーム大会(ランキング)
ユーザー cielciel
提出日時 2017-04-23 01:18:35
言語 Ruby
(3.3.0)
結果
AC  
実行時間 465 ms / 2,000 ms
コード長 73 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 11,228 KB
実行使用メモリ 17,628 KB
最終ジャッジ日時 2023-09-28 21:48:19
合計ジャッジ時間 5,651 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,204 KB
testcase_01 AC 85 ms
15,124 KB
testcase_02 AC 84 ms
15,128 KB
testcase_03 AC 85 ms
15,072 KB
testcase_04 AC 84 ms
15,032 KB
testcase_05 AC 85 ms
15,132 KB
testcase_06 AC 85 ms
15,220 KB
testcase_07 AC 456 ms
17,332 KB
testcase_08 AC 465 ms
17,492 KB
testcase_09 AC 450 ms
17,536 KB
testcase_10 AC 455 ms
17,376 KB
testcase_11 AC 461 ms
17,628 KB
testcase_12 AC 440 ms
17,516 KB
testcase_13 AC 438 ms
17,508 KB
testcase_14 AC 451 ms
17,532 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

#!/usr/bin/ruby
n,x,*a=$<.map &:to_i
p q=1
a.each{|e|
	q+=1 if e>x
	p q
}
0