問題一覧 > 通常問題

No.841 8/32

レベル : / AI推定難易度 : 101 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 473
作問者 : Tlapesium / テスター : yuki2006
お気に入りにしたユーザー ProblemId : 2866 / 自分の提出
問題文最終更新日: 2019-06-29 02:37:37
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 216 (順位表) の他の問題:

Problem Statement

You are given the days of the week of 9/1 and 9/2.
If only 9/1 is a Saturday (Sat) or Sunday (Sun), print "8/32"; if both 9/1 and 9/2 are a Saturday or Sunday, print "8/33".
Otherwise, print "8/31".

Note that the days of the week may progress differently from the real world.
Also, of course, words other than Sat and Sun do not refer to Saturday or Sunday.

Input

$S_1 \ S_2 $

The day of the week $S_1$ of 9/1 and the day of the week $S_2$ of 9/2 are given, separated by a space.
Each of $S_1,S_2$ is one of "Mon","Tue","Wed","Thu","Fri","Sat","Sun".

Output

Print the answer on one line.

Sample

Sample 1
Input
Sun Mon
Output
8/32

Summer vacation lasts until 8/32.

Sample 2
Input
Sat Sun
Output
8/33

Summer vacation lasts until 8/33.

Sample 3
Input
Sun Sat
Output
8/33

The day after a Sunday may be a Saturday.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。