結果

問題 No.841 8/32
ユーザー 9V72n
提出日時 2019-08-07 21:33:07
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 452 bytes
コンパイル時間 1,270 ms
コンパイル使用メモリ 163,976 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-18 18:52:00
合計ジャッジ時間 2,418 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

char s1[10],s2[10];

int main(){
    scanf("%s %s",s1,s2);
    if((strcmp(s1,"Sun") == 0 || strcmp(s1,"Sat") == 0) && !(strcmp(s2,"Sun") == 0 || strcmp(s2,"Sat") == 0)){
        printf("8/32");
    }else if((strcmp(s1,"Sun") == 0 || strcmp(s1,"Sat") == 0) && (strcmp(s2,"Sun") == 0 || strcmp(s2,"Sat") == 0)){
        printf("8/33");
    }else{
        printf("8/31");
    }
    return 0;
}
0