AtCoder Beginner Contest 146
翻译中…
Problem Statement
翻译中…
Given is a string $S$ representing the day of the week today.
翻译中…
$S$ is SUN, MON, TUE, WED, THU, FRI, or SAT, for Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday, respectively.
翻译中…
After how many days is the next Sunday (tomorrow or later)?
翻译中…
Constraints
翻译中…
$S$isSUN,MON,TUE,WED,THU,FRI, orSAT.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
S
翻译中…
Output
翻译中…
Print the number of days before the next Sunday.
翻译中…
样例
Input #1
SAT
Output #1
1
It is Saturday today, and tomorrow will be Sunday.
Input #2
SUN
Output #2
7
It is Sunday today, and seven days later, it will be Sunday again.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。