結果

問題 No.231 めぐるはめぐる (1)
ユーザー gorugo30gorugo30
提出日時 2021-02-23 20:37:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 54 ms / 1,000 ms
コード長 294 bytes
コンパイル時間 794 ms
コンパイル使用メモリ 81,764 KB
実行使用メモリ 63,616 KB
最終ジャッジ日時 2023-10-23 21:29:08
合計ジャッジ時間 1,586 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
63,616 KB
testcase_01 AC 37 ms
53,320 KB
testcase_02 AC 35 ms
53,320 KB
testcase_03 AC 47 ms
61,392 KB
testcase_04 AC 51 ms
63,616 KB
testcase_05 AC 41 ms
55,368 KB
testcase_06 AC 47 ms
61,392 KB
testcase_07 AC 36 ms
53,320 KB
testcase_08 AC 40 ms
55,368 KB
testcase_09 AC 34 ms
53,320 KB
testcase_10 AC 34 ms
53,320 KB
testcase_11 AC 35 ms
53,320 KB
testcase_12 AC 44 ms
60,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
need = 30000 * 100
GD = [list(map(int, input().split())) + [i] for i in range(N)]
GD.sort(key = lambda x: x[0] - 30000 * x[1], reverse = True)
if 6 * GD[0][0] - 180000 * GD[0][1] >= need:
    print("YES")
    for i in range(6):
        print(GD[0][2] + 1)
else:
    print("NO")
0