結果

問題 No.841 8/32
ユーザー warm4C0warm4C0
提出日時 2023-05-07 20:24:07
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 1,304 ms
コンパイル使用メモリ 159,756 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-24 19:29:19
合計ジャッジ時間 2,180 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

bool is_holiday(string s) {
	return s == "Sat" || s== "Sun";
}

int main() {
	string s1, s2;
	cin >> s1 >> s2;

	if (is_holiday(s1)) {
		if (is_holiday(s2)) {
			puts("8/33");
		} else {
			puts("8/32");
		}
	} else {
		puts("8/31");
	}

	return 0;
}
0