結果

問題 No.231 めぐるはめぐる (1)
ユーザー mmmpppmmmppp
提出日時 2017-02-27 21:22:34
言語 Ruby
(3.3.0)
結果
AC  
実行時間 95 ms / 1,000 ms
コード長 95 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 11,592 KB
実行使用メモリ 16,136 KB
最終ジャッジ日時 2023-09-02 13:10:36
合計ジャッジ時間 2,280 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
16,136 KB
testcase_01 AC 86 ms
15,024 KB
testcase_02 AC 83 ms
15,320 KB
testcase_03 AC 90 ms
15,372 KB
testcase_04 AC 93 ms
15,812 KB
testcase_05 AC 86 ms
15,612 KB
testcase_06 AC 89 ms
15,588 KB
testcase_07 AC 89 ms
15,304 KB
testcase_08 AC 89 ms
15,408 KB
testcase_09 AC 86 ms
15,300 KB
testcase_10 AC 83 ms
15,288 KB
testcase_11 AC 83 ms
15,344 KB
testcase_12 AC 89 ms
15,456 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n=gets.to_i
a=$<.map{|e|eval e.sub' ','-30000*'}
m=a.max
puts m<5e5?:NO:[:YES,[1+a.index(m)]*6]
0