Submission #8621663


Source Code Expand

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

S = read().rstrip().decode('utf-8')

weekday = 'SUN,MON,TUE,WED,THU,FRI,SAT'.split(',')
dic = {x:7 - i%7 for i,x in enumerate(weekday)}

answer = dic[S]
print(answer)

Submission Info

Submission Time
Task A - Can't Wait for Holiday
User maspy
Language Python (3.4.3)
Score 100
Code Size 296 Byte
Status AC
Exec Time 17 ms
Memory 2940 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 7
Set Name Test Cases
Sample sample_SAT, sample_SUN
All FRI, MON, THU, TUE, WED, sample_SAT, sample_SUN
Case Name Status Exec Time Memory
FRI AC 17 ms 2940 KB
MON AC 17 ms 2940 KB
THU AC 17 ms 2940 KB
TUE AC 17 ms 2940 KB
WED AC 17 ms 2940 KB
sample_SAT AC 17 ms 2940 KB
sample_SUN AC 17 ms 2940 KB