結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー |
![]() |
提出日時 | 2025-03-20 20:17:56 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 53 ms / 1,000 ms |
コード長 | 428 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 82,244 KB |
実行使用メモリ | 62,440 KB |
最終ジャッジ日時 | 2025-03-20 20:18:06 |
合計ジャッジ時間 | 1,527 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 11 |
ソースコード
n = int(input())max_e = 0candidates = []for i in range(1, n + 1):g, d = map(int, input().split())e = g - 30000 * dif e > max_e:max_e = ecandidates = [i]elif e == max_e:candidates.append(i)required = 30000 * 100 # 3,000,000if max_e * 6 < required:print("NO")else:print("YES")for h in range(6):idx = h % len(candidates)print(candidates[idx])