結果

問題 No.231 めぐるはめぐる (1)
コンテスト
ユーザー 👑 rin204
提出日時 2021-08-29 16:20:20
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 34 ms / 1,000 ms
+ 351µs
コード長 285 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 72 ms
コンパイル使用メモリ 81,876 KB
実行使用メモリ 63,932 KB
最終ジャッジ日時 2026-09-28 00:28:13
合計ジャッジ時間 2,135 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n = int(input())
max_ = -1
ind = -1
for i in range(1, n + 1):
    g, d = map(int, input().split())
    tmp = g - 30000 * d
    if tmp > max_:
        max_ = tmp
        ind = i
        
if max_ >= 500000:
    print("YES")
    for _ in range(6):
        print(ind)
else:
    print("NO")
0