結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-23 20:37:27 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 1,000 ms |
| + 808µs | |
| コード長 | 294 bytes |
| 記録 | |
| コンパイル時間 | 228 ms |
| コンパイル使用メモリ | 95,832 KB |
| 実行使用メモリ | 83,576 KB |
| 最終ジャッジ日時 | 2026-09-02 13:27:47 |
| 合計ジャッジ時間 | 2,199 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")