結果

問題 No.231 めぐるはめぐる (1)
ユーザー kohei2019kohei2019
提出日時 2022-01-05 21:29:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 1,000 ms
コード長 340 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 61,696 KB
最終ジャッジ日時 2024-04-24 02:04:52
合計ジャッジ時間 1,636 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
61,696 KB
testcase_01 AC 42 ms
52,608 KB
testcase_02 AC 42 ms
52,480 KB
testcase_03 AC 49 ms
55,040 KB
testcase_04 AC 53 ms
61,312 KB
testcase_05 AC 45 ms
54,272 KB
testcase_06 AC 49 ms
55,040 KB
testcase_07 AC 42 ms
52,608 KB
testcase_08 AC 45 ms
53,760 KB
testcase_09 AC 40 ms
51,968 KB
testcase_10 AC 41 ms
51,584 KB
testcase_11 AC 40 ms
51,968 KB
testcase_12 AC 47 ms
54,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
need = 3000000//6
lsGD = []
for i in range(N):
    G,D = map(int,input().split())
    gets = G-30000*D
    lsGD.append(gets)
maxG = max(lsGD)
indmax = 0
for i in range(N):
    if lsGD[i] == maxG:
        indmax = i
        break
if need > maxG:
    print('NO')
    exit()
print('YES')
for i in range(6):
    print(indmax+1)
0