Submission #1144374


Source Code Expand

Copy
S = list(input())
S.sort()
Y = list("yahoo")
Y.sort()
S = "".join(S)
Y = "".join(Y)
if S == Y:
    print("YES")
else:
    print("NO")

Submission Info

Submission Time
Task A - Yahoo
User poyodr
Language Python3 (3.4.3)
Score 100
Code Size 144 Byte
Status
Exec Time 18 ms
Memory 2940 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample1.txt, sample2.txt, sample3.txt, sample4.txt
All 100 / 100 sample1.txt, sample2.txt, sample3.txt, sample4.txt, in1.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, in8.txt, in9.txt, sample1.txt, sample2.txt, sample3.txt, sample4.txt
Case Name Status Exec Time Memory
in1.txt 18 ms 2940 KB
in2.txt 17 ms 2940 KB
in3.txt 17 ms 2940 KB
in4.txt 17 ms 2940 KB
in5.txt 17 ms 2940 KB
in6.txt 17 ms 2940 KB
in7.txt 17 ms 2940 KB
in8.txt 17 ms 2940 KB
in9.txt 17 ms 2940 KB
sample1.txt 17 ms 2940 KB
sample2.txt 17 ms 2940 KB
sample3.txt 17 ms 2940 KB
sample4.txt 17 ms 2940 KB