結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-23 20:37:27 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 1,000 ms |
| コード長 | 294 bytes |
| 記録 | |
| コンパイル時間 | 137 ms |
| コンパイル使用メモリ | 85,200 KB |
| 実行使用メモリ | 64,588 KB |
| 最終ジャッジ日時 | 2026-04-10 21:14:38 |
| 合計ジャッジ時間 | 1,605 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
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")