以下の内容はhttps://blog.hamayanhamayan.com/entry/2019/06/29/082755より取得しました。


8/32 [yukicoder No.841]

https://yukicoder.me/problems/no/841

解説

https://yukicoder.me/submissions/354599

実装問題。
isDonichi(s) := sが土曜日曜どっちかならtrue
という関数を作っておいて、それを使って判定して、答えていこう。

string S1, S2;
//---------------------------------------------------------------------------------------------------
bool isDonichi(string s) {
	if (s == "Sat" or s == "Sun") return true;
	else return false;
}
//---------------------------------------------------------------------------------------------------
void _main() {
	cin >> S1 >> S2;

	if (isDonichi(S1) and isDonichi(S2)) cout << "8/33" << endl;
	else if (isDonichi(S1)) cout << "8/32" << endl;
	else cout << "8/31" << endl;
}



以上の内容はhttps://blog.hamayanhamayan.com/entry/2019/06/29/082755より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14