結果
| 問題 |
No.851 テストケース
|
| コンテスト | |
| ユーザー |
双六
|
| 提出日時 | 2020-08-19 02:00:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 47 ms / 3,153 ms |
| コード長 | 516 bytes |
| コンパイル時間 | 347 ms |
| コンパイル使用メモリ | 81,996 KB |
| 実行使用メモリ | 55,884 KB |
| 最終ジャッジ日時 | 2024-10-12 03:27:05 |
| 合計ジャッジ時間 | 2,311 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
# import sys; input = sys.stdin.buffer.readline
# sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")
def getlist():
return list(map(int, input().split()))
#処理内容
def main():
N = int(input())
A = getlist()
if sum(A) != A[0]:
print('"assert"')
return
a2 = int(input())
A.append(a2)
a3 = int(input())
A.append(a3)
A.sort()
if A[0] + A[2] == A[1] + A[2]:
print(A[0] + A[1])
else:
print(A[0] + A[2])
if __name__ == '__main__':
main()
双六