結果

問題 No.231 めぐるはめぐる (1)
ユーザー mayoko_mayoko_
提出日時 2015-07-30 20:12:48
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 246 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 11,540 KB
実行使用メモリ 15,392 KB
最終ジャッジ日時 2023-09-24 22:17:35
合計ジャッジ時間 3,529 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 82 ms
15,256 KB
testcase_02 AC 81 ms
15,112 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 84 ms
15,164 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 79 ms
15,140 KB
testcase_11 AC 80 ms
15,108 KB
testcase_12 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
ans = -1
for i in 0..n-1 do
    g, d = gets.split().map(&:to_i)
    if ((g-d*30000)*6 >= 3000000)
        ans = i
    end
end
if (ans == -1)
    printf("NO\n")
else
    printf("YES\n")
    for i in 1..6 do
        p ans
    end
end
0