Submission #17336124


Source Code Expand

Copy
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

def main(a, b, c, d):
    if d == a + b + c:
        return True
    if a + d == b + c:
        return True
    return False

a, b, c, d = sorted(map(int, read().split()))

print('Yes' if main(a, b, c, d) else 'No')

Submission Info

Submission Time
Task A - Fourtune Cookies
User maspy
Language Python (3.8.2)
Score 200
Code Size 348 Byte
Status
Exec Time 32 ms
Memory 9172 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
× 2
× 14
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt 19 ms 9128 KB
random_02.txt 21 ms 8888 KB
random_03.txt 19 ms 8888 KB
random_04.txt 20 ms 8992 KB
random_05.txt 24 ms 9004 KB
random_06.txt 25 ms 8988 KB
random_07.txt 19 ms 9044 KB
random_08.txt 29 ms 8988 KB
random_09.txt 20 ms 9112 KB
random_10.txt 20 ms 8992 KB
random_11.txt 26 ms 8876 KB
random_12.txt 32 ms 9172 KB
sample_01.txt 22 ms 8992 KB
sample_02.txt 21 ms 8988 KB