結果

問題 No.841 8/32
ユーザー maicune
提出日時 2019-09-02 17:54:04
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 278 bytes
コンパイル時間 1,626 ms
コンパイル使用メモリ 162,644 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-16 06:07:14
合計ジャッジ時間 2,499 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    string s1,s2;
    cin>>s1>>s2;
    vector<string> ans={"8/31","8/32","8/33"};
    int cnt=0;
    if(s1=="Sat"||s1=="Sun"){
        if(s2=="Sat"||s2=="Sun")cnt+=2;
        else cnt+=1;
    }
    cout<<ans[cnt]<<endl;
}
0