結果

問題 No.851 テストケース
ユーザー kuuso1kuuso1
提出日時 2019-07-26 21:43:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 3,153 ms
コード長 730 bytes
コンパイル時間 473 ms
コンパイル使用メモリ 10,796 KB
実行使用メモリ 8,796 KB
最終ジャッジ日時 2023-09-15 00:56:54
合計ジャッジ時間 1,831 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,596 KB
testcase_01 AC 20 ms
8,540 KB
testcase_02 AC 20 ms
8,692 KB
testcase_03 AC 20 ms
8,604 KB
testcase_04 AC 21 ms
8,688 KB
testcase_05 AC 20 ms
8,640 KB
testcase_06 AC 20 ms
8,716 KB
testcase_07 AC 20 ms
8,692 KB
testcase_08 AC 20 ms
8,608 KB
testcase_09 AC 20 ms
8,720 KB
testcase_10 AC 20 ms
8,688 KB
testcase_11 AC 20 ms
8,632 KB
testcase_12 AC 20 ms
8,592 KB
testcase_13 AC 21 ms
8,752 KB
testcase_14 AC 20 ms
8,720 KB
testcase_15 AC 20 ms
8,684 KB
testcase_16 AC 20 ms
8,688 KB
testcase_17 AC 20 ms
8,796 KB
testcase_18 AC 19 ms
8,608 KB
testcase_19 AC 20 ms
8,788 KB
testcase_20 AC 20 ms
8,540 KB
testcase_21 AC 20 ms
8,632 KB
testcase_22 AC 20 ms
8,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin
import sys
from functools import reduce
##  input functions for me
def ria(sep = ''):
    if sep == '' :
        return list(map(int, input().split())) 
    else: return list(map(int, input().split(sep)))
def rsa(sep = ''):
    if sep == '' :
        return input().split() 
    else: return input().split(sep)
def ri(): return int(input())
def rd(): return float(input())
def rs(): return input()
##

## main ##

N = ri()
A = []
A.append(ria())
if len(A[0]) != 1 :
    print("\"assert\"")
    sys.exit()

A.append(ria())
A.append(ria())
for i in range(0,3): A[i] = A[i][0]
B = set()
for i in range(0,3):
    for j in range(i + 1, 3):
        B.add(A[i] + A[j])
C = list(B)
C.sort()
print(C[len(C) - 2])




0