結果
問題 | No.2789 hako111223’s Master Thesis |
ユーザー |
|
提出日時 | 2024-06-21 21:22:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 639 bytes |
コンパイル時間 | 1,973 ms |
コンパイル使用メモリ | 191,128 KB |
最終ジャッジ日時 | 2025-02-21 23:43:25 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;#define rep(i, n) for (int i = 0; i < (int)(n); ++i)template<typename T>bool chmax(T &a, T b) {if (a < b) {a = b;return true;}return false;}template<typename T>bool chmin(T &a, T b) {if (a > b) {a = b;return true;}return false;}void solve();int main() {cin.tie(nullptr)->sync_with_stdio(false);cout << fixed << setprecision(20);int t = 1;//cin >> t;while (t--) {solve();}}int A,B,C,D;void solve() {cin>>A>>B>>C>>D;int ans=3;if(C<=(31+B)-A)--ans;if(D<=(31+B)-A)--ans;cout<<ans<<endl;}