Submission #489860


Source Code Expand

ns = [int(n) for n in raw_input().split()]

sums = []
for i in range(len(ns)):
    for j in range(i):
        for k in range(j):
            sums.append(ns[i] + ns[j] + ns[k])

sums.sort(reverse=True)
print sums[2]

Submission Info

Submission Time
Task C - 数を3つ選ぶマン
User lackdog
Language Python (2.7.3)
Score 100
Code Size 225 Byte
Status AC
Exec Time 56 ms
Memory 3320 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 15
Set Name Test Cases
Sample example_0.txt, example_1.txt
All example_0.txt, example_1.txt, handmade_0.txt, handmade_1.txt, handmade_2.txt, handmade_3.txt, handmade_4.txt, handmade_5.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt, example_0.txt, example_1.txt
Case Name Status Exec Time Memory
example_0.txt AC 56 ms 3264 KiB
example_1.txt AC 53 ms 3256 KiB
handmade_0.txt AC 53 ms 3260 KiB
handmade_1.txt AC 55 ms 3256 KiB
handmade_2.txt AC 53 ms 3260 KiB
handmade_3.txt AC 53 ms 3268 KiB
handmade_4.txt AC 53 ms 3320 KiB
handmade_5.txt AC 55 ms 3252 KiB
random_0.txt AC 55 ms 3256 KiB
random_1.txt AC 53 ms 3256 KiB
random_2.txt AC 55 ms 3268 KiB
random_3.txt AC 55 ms 3260 KiB
random_4.txt AC 53 ms 3248 KiB