結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
Ueki
|
| 提出日時 | 2019-07-27 16:18:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 341 bytes |
| コンパイル時間 | 79 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-02 11:01:12 |
| 合計ジャッジ時間 | 1,584 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 20 |
ソースコード
import heapq
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
N = int(input())
try:
A = [int(input()) for _ in range(N)]
cand = []
for i in range(N):
for j in range(i+1, N):
heapq.heappush(cand, -A[i]-A[j])
_ = heapq.heappop()
print(-heapq.heappop(A))
except:
print("assert")
Ueki