結果

問題 No.851 テストケース
ユーザー dn6049949dn6049949
提出日時 2019-07-26 21:22:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 1,128 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 73,488 KB
最終ジャッジ日時 2023-09-15 00:29:28
合計ジャッジ時間 3,923 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
73,116 KB
testcase_01 AC 115 ms
73,060 KB
testcase_02 WA -
testcase_03 AC 114 ms
73,212 KB
testcase_04 AC 111 ms
72,992 KB
testcase_05 AC 111 ms
72,980 KB
testcase_06 AC 110 ms
73,348 KB
testcase_07 AC 110 ms
73,120 KB
testcase_08 AC 110 ms
72,868 KB
testcase_09 AC 110 ms
73,068 KB
testcase_10 AC 110 ms
73,308 KB
testcase_11 AC 109 ms
73,436 KB
testcase_12 AC 114 ms
73,092 KB
testcase_13 AC 116 ms
73,212 KB
testcase_14 AC 111 ms
73,056 KB
testcase_15 AC 113 ms
73,096 KB
testcase_16 AC 110 ms
73,008 KB
testcase_17 AC 110 ms
73,208 KB
testcase_18 AC 109 ms
73,320 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 111 ms
72,984 KB
testcase_22 AC 112 ms
73,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def LS():return [list(x) for x in sys.stdin.readline().split()]
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    return [I() for i in range(n)]
def LIR(n):
    return [LI() for i in range(n)]
def SR(n):
    return [S() for i in range(n)]
def LSR(n):
    return [LS() for i in range(n)]

sys.setrecursionlimit(1000000)
mod = 1000000007

#A
def A():
    try:
        n = I()
        a = IR(n)
        l = []
        for i in range(n):
            for j in range(i):
                l.append(a[i]+a[j])
        l = list(set(l))
        l.sort()
        l = l[::-1]
        print(l[1])
    except:
        print("assert")
    return

#B
def B():
    n = I()

    return

#C
def C():
    n = I()

    return

#D
def D():
    n = I()

    return

#E
def E():
    n = I()

    return

#F
def F():
    n = I()

    return

#Solve
if __name__ == "__main__":
    A()
0