結果

問題 No.231 めぐるはめぐる (1)
ユーザー ABKZABKZ
提出日時 2023-01-21 15:22:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 1,000 ms
コード長 247 bytes
コンパイル時間 606 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 75,284 KB
最終ジャッジ日時 2023-09-06 04:25:56
合計ジャッジ時間 2,776 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
75,284 KB
testcase_01 AC 74 ms
71,132 KB
testcase_02 AC 71 ms
71,444 KB
testcase_03 AC 74 ms
71,044 KB
testcase_04 AC 81 ms
75,104 KB
testcase_05 AC 75 ms
71,128 KB
testcase_06 AC 76 ms
71,128 KB
testcase_07 AC 73 ms
71,100 KB
testcase_08 AC 71 ms
71,160 KB
testcase_09 AC 67 ms
71,476 KB
testcase_10 AC 68 ms
71,468 KB
testcase_11 AC 70 ms
71,328 KB
testcase_12 AC 76 ms
71,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
p = [g - 30000*d for g, d in [map(int, input().split()) for _ in range(N)]]

for i, x in enumerate(p):
    if x >= 500000:
        print("YES")
        for _ in range(6):
            print(i+1)
        break
else:
    print("NO")
0