Submission #6748575


Source Code Expand

Copy
a = list(map(int, input().split()))
count_a = 0
count_b = 0
count_c = 0
count_d = 0

for i in range(4):
    if a[i] == 1:
        count_a += 1
    if a[i] == 4:
        count_b += 1
    if a[i] == 7:
        count_c += 1
    if a[i] == 9:
        count_d += 1

if count_a == 1 and count_b == 1 and count_c == 1 and count_d == 1:
    print('YES')
else:
    print('NO')

Submission Info

Submission Time
Task A - Beginning
User masuken
Language Python3 (3.4.3)
Score 100
Code Size 388 Byte
Status
Exec Time 18 ms
Memory 3060 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 s1.txt, s2.txt, s3.txt, s4.txt
All 100 / 100 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, s1.txt, s2.txt, s3.txt, s4.txt
Case Name Status Exec Time Memory
01.txt 18 ms 2940 KB
02.txt 18 ms 3060 KB
03.txt 18 ms 3060 KB
04.txt 18 ms 3060 KB
05.txt 18 ms 2940 KB
06.txt 18 ms 3060 KB
07.txt 18 ms 3060 KB
08.txt 18 ms 2940 KB
09.txt 18 ms 2940 KB
10.txt 18 ms 3060 KB
s1.txt 18 ms 3060 KB
s2.txt 18 ms 3060 KB
s3.txt 18 ms 3060 KB
s4.txt 18 ms 2940 KB