Submission #70419184


Source Code Expand

import sys
n, m = map(int, sys.stdin.readline().split())

A = list(map(int, sys.stdin.readline().split()))

total = (sum(A))

for a in A :
    rest = total - a
    if rest == m :
        print("Yes")
        sys.exit()
print("No")

Submission Info

Submission Time
Task B - N - 1
User tariaki
Language Python (CPython 3.11.4)
Score 200
Code Size 246 Byte
Status AC
Exec Time 10 ms
Memory 8876 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 29
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 01_random_16.txt, 01_random_17.txt, 01_random_18.txt, 01_random_19.txt, 01_random_20.txt, 01_random_21.txt, 01_random_22.txt, 01_random_23.txt, 01_random_24.txt, 01_random_25.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 9 ms 8832 KiB
00_sample_01.txt AC 9 ms 8504 KiB
00_sample_02.txt AC 9 ms 8876 KiB
01_random_00.txt AC 9 ms 8864 KiB
01_random_01.txt AC 9 ms 8548 KiB
01_random_02.txt AC 10 ms 8860 KiB
01_random_03.txt AC 9 ms 8460 KiB
01_random_04.txt AC 9 ms 8448 KiB
01_random_05.txt AC 9 ms 8864 KiB
01_random_06.txt AC 9 ms 8788 KiB
01_random_07.txt AC 9 ms 8832 KiB
01_random_08.txt AC 9 ms 8764 KiB
01_random_09.txt AC 9 ms 8836 KiB
01_random_10.txt AC 9 ms 8828 KiB
01_random_11.txt AC 9 ms 8776 KiB
01_random_12.txt AC 9 ms 8724 KiB
01_random_13.txt AC 9 ms 8876 KiB
01_random_14.txt AC 9 ms 8716 KiB
01_random_15.txt AC 9 ms 8828 KiB
01_random_16.txt AC 9 ms 8476 KiB
01_random_17.txt AC 9 ms 8496 KiB
01_random_18.txt AC 9 ms 8524 KiB
01_random_19.txt AC 9 ms 8392 KiB
01_random_20.txt AC 9 ms 8520 KiB
01_random_21.txt AC 9 ms 8424 KiB
01_random_22.txt AC 9 ms 8720 KiB
01_random_23.txt AC 9 ms 8496 KiB
01_random_24.txt AC 9 ms 8488 KiB
01_random_25.txt AC 10 ms 8524 KiB