結果
問題 | No.841 8/32 |
ユーザー |
![]() |
提出日時 | 2019-08-27 12:46:41 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,266 bytes |
コンパイル時間 | 1,702 ms |
コンパイル使用メモリ | 167,780 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-14 08:03:34 |
合計ジャッジ時間 | 2,369 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; #pragma GCC optimize("Ofast") #define all(x) (x).begin(),(x).end() #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define REP(i, m, n) for(int i = m; i < n; i++) #define SORT(v) sort(all(v)) #define REV(v) sort((v).begin(), (v).end(), greater<int>()) #define INF 1000000007 #define fcout cout << fixed << setprecision(15) typedef long long ll; typedef pair<int, int> P; int gcd(int a,int b){return b?gcd(b,a%b):a;}; int lcm(int a,int b){return a * b / gcd(a, b);}; int mod(int a,int b){return (a+b-1)/b;}; int month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; template<typename A, size_t N, typename T> void Fill(A (&array)[N], const T &val){std::fill( (T*)array, (T*)(array+N), val );}; template<class T>inline bool chmax(T& a,T b){if(a < b){a=b;return true;}return false;}; template<class T>inline bool chmin(T& a,T b){if(a > b){a=b;return true;}return false;}; int main() { cin.tie(0); cout.tie(0); ios::sync_with_stdio(false); string s[2]; cin >> s[0] >> s[1]; sort(s, s + 2); if(s[0] == "Sat" && s[1] == "Sun") cout << "8/33" << endl; else if(s[0] == "Sat" || s[0] == "Sun" || s[1] == "Sat" || s[1] == "Sun") cout << "8/32" << endl; else cout << "8/31" << endl; return 0; }