結果

問題 No.841 8/32
ユーザー autumn-eel
提出日時 2019-07-14 20:56:41
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 421 bytes
コンパイル時間 1,541 ms
コンパイル使用メモリ 166,584 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-24 15:51:09
合計ジャッジ時間 2,080 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<(n);i++)
#define MOD 1000000007
#define INF 0x3f3f3f3f
#define INFL 0x3f3f3f3f3f3f3f3f
#define EPS (1e-10)
using namespace std;
typedef long long ll;
typedef pair<int,int>P;

bool valid(string s){
	return s=="Sat"||s=="Sun";
}
int main(){
	string a,b;cin>>a>>b;
	if(valid(a)&&valid(b)){
		puts("8/33");
	}
	else if(valid(a)){
		puts("8/32");
	}
	else puts("8/31");
}
0