結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-11 22:45:35 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 452 bytes |
| コンパイル時間 | 656 ms |
| コンパイル使用メモリ | 82,212 KB |
| 実行使用メモリ | 63,708 KB |
| 最終ジャッジ日時 | 2024-10-15 17:47:41 |
| 合計ジャッジ時間 | 4,166 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 11 |
ソースコード
import sys
if sys.platform =='ios':
import clipboard
a=clipboard.get()
a = a.split('\n')
text = '\n'.join(a)
with open('input_file.txt','w') as f:
f.write(text)
sys.stdin = open('input_file.txt')
n = int(input())
ans = 3000000
ex = []
for i in range(n):
G,D = map(int,input().split())
EX = G - D*30000
ex.append(EX)
A = max(ex)
print(A)
if A*6 < ans:
exit(print("NO"))
N = ex.index(max(ex))
print("YES")
for i in range(6):
print(N+1)