結果

問題 No.231 めぐるはめぐる (1)
ユーザー cielciel
提出日時 2015-06-27 00:03:34
言語 Ruby
(3.2.2)
結果
AC  
実行時間 86 ms / 1,000 ms
コード長 164 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 11,552 KB
実行使用メモリ 15,316 KB
最終ジャッジ日時 2023-08-07 18:37:32
合計ジャッジ時間 2,316 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,104 KB
testcase_01 AC 81 ms
15,016 KB
testcase_02 AC 80 ms
15,296 KB
testcase_03 AC 83 ms
15,244 KB
testcase_04 AC 83 ms
15,236 KB
testcase_05 AC 85 ms
15,204 KB
testcase_06 AC 84 ms
15,284 KB
testcase_07 AC 83 ms
15,180 KB
testcase_08 AC 83 ms
15,036 KB
testcase_09 AC 82 ms
15,316 KB
testcase_10 AC 81 ms
15,292 KB
testcase_11 AC 83 ms
15,120 KB
testcase_12 AC 83 ms
15,304 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/usr/bin/ruby
gets
a=$<.each.with_index(1).map{|e,i|
	a,b=e.split.map(&:to_i)
	[a-30000*b,i]
}.max
if a[0]*6>=3000000
	puts :YES
	puts [a[1]]*6
else
	puts :NO
end
0