結果

問題 No.841 8/32
ユーザー leafirby
提出日時 2019-07-05 00:00:58
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 1,594 ms
コンパイル使用メモリ 166,024 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 06:50:42
合計ジャッジ時間 2,244 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;;
int main(){
    string fir,sec;
    cin >> fir >> sec;
    if(fir=="Sat"&&sec=="Sat"||fir=="Sun"&&sec=="Sat"||fir=="Sat"&&sec=="Sun"||fir=="Sun"&&sec=="Sun")cout << "8/33" << endl;
    else if(fir=="Sat"||fir=="Sun")cout << "8/32" << endl;
    else cout << "8/31" << endl;
}
0