結果
問題 | No.2789 hako111223’s Master Thesis |
ユーザー |
![]() |
提出日時 | 2024-07-25 23:53:53 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,060 bytes |
コンパイル時間 | 5,978 ms |
コンパイル使用メモリ | 334,088 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-25 23:54:01 |
合計ジャッジ時間 | 6,789 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#ifndef LOCAL #include<bits/stdc++.h> #include<atcoder/all> #else #include<local.h> #endif using namespace std; using namespace atcoder; using mint=modint998244353; using mint1=modint1000000007; using std::cout; using std::cin; #define fi first #define se second #define pb(a) push_back(a) #define eb(a) emplace_back(a) #define ppf() pop_front() #define ppb() pop_back() #define mp(f,s) make_pair(f,s) #define A(a) begin(a),end(a) #define int int64_t #define uint uint64_t #define harf int32_t #define uharf uint32_t #define endl '\n' template<class f> using vc = vector<f>; template<class f> using vv = vc<vc<f>>; template<class f> using pq = priority_queue<f>; template<class f> using pqg= priority_queue<f,vc<f>,greater<f>>; using vi = vc<int>; using vb = vc<bool>; using pi = pair<int,int>; using str = string; const str yes="Yes\n", no="No\n"; constexpr int dx[]={-1,0,0,1,-1,1,-1,1}; constexpr int dy[]={0,-1,1,0,-1,-1,1,1}; signed main(){ cin.tie(0)->sync_with_stdio(0); int a,b,c,d; cin>>a>>b>>c>>d; int D=31-a+b; cout<<(c<=D?1:d<=D?2:3)<<endl; }