結果

問題 No.851 テストケース
ユーザー calei
提出日時 2020-01-20 20:15:07
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 3,153 ms
コード長 358 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-02 22:59:38
合計ジャッジ時間 1,382 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

# yukicoder No.851 テストケース 2020/01/20

n=int(input())
a=[]
for i in range(n):
    res=list(map(int,input().split()))
    if len(res)>1:
        print('"assert"')
        exit()
    a.append(*res)

ans=set()
for i in range(n):
    for j in range(n):
        if i==j:continue
        ans.add(a[i]+a[j])

ans=sorted(ans)[::-1]

print(ans[1%len(ans)])
0