結果
問題 | No.2789 hako111223’s Master Thesis |
ユーザー | 筆者 |
提出日時 | 2024-07-05 00:38:17 |
言語 | C++23(gcc13) (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,935 bytes |
コンパイル時間 | 4,767 ms |
コンパイル使用メモリ | 272,664 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-05 00:38:24 |
合計ジャッジ時間 | 5,646 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
6,812 KB |
testcase_01 | AC | 2 ms
6,940 KB |
testcase_02 | AC | 1 ms
6,944 KB |
testcase_03 | AC | 2 ms
6,940 KB |
testcase_04 | AC | 2 ms
6,944 KB |
testcase_05 | AC | 2 ms
6,944 KB |
testcase_06 | AC | 2 ms
6,940 KB |
testcase_07 | AC | 2 ms
6,940 KB |
testcase_08 | AC | 2 ms
6,940 KB |
testcase_09 | AC | 2 ms
6,944 KB |
testcase_10 | AC | 2 ms
6,940 KB |
testcase_11 | AC | 2 ms
6,944 KB |
testcase_12 | AC | 2 ms
6,944 KB |
testcase_13 | AC | 2 ms
6,940 KB |
testcase_14 | AC | 2 ms
6,940 KB |
testcase_15 | AC | 2 ms
6,944 KB |
testcase_16 | AC | 2 ms
6,940 KB |
testcase_17 | AC | 2 ms
6,944 KB |
ソースコード
#include <bits/stdc++.h> //#include <atcoder/all> #define yes cout << "Yes" << '\n' #define no cout << "No" << '\n' #define YES cout << "YES" << '\n' #define NO cout << "NO" << '\n' #define OK cout << "OK" << '\n' #define NG cout << "NG" << '\n' #define Yes "Yes" #define No "No" #define Takahashi cout << "Takahashi" << '\n' #define Aoki cout << "Aoki" << '\n' #define minus cout << -1 << '\n' #define br cout << '\n' #define nl '\n' #define sadFace ":(" #define circle 'o' #define cross 'x' #define elif else if #define len(s) (int)s.length() #define sz size #define it insert #define mp make_pair #define pb push_back #define eb emplace_back #define ll long long #define ull unsigned long long #define ft first #define sd second #define ctz(x) __builtin_ctz(x); #define rep(i, n) for (int i = 0; i < (n); i++) #define rep1(i, n) for (int i = 1; i <= (n); i++) #define MIN(v) *min_element(all(v)) #define MAX(v) *max_element(all(v)) #define all(v) v.begin(), v.end() #define lla(v) rbegin(v), rend(v) #define vecTotal(v) accumulate(v.begin(), v.end(), 0) #define ruisekiwa(v, e) partial_sum(v.begin(), v.end(), back_inserter(e)) using namespace std; //using namespace atcoder; template <typename T> T div_ceil(T a, T b) { // 切り上げ除算 return (a >= 0 ? (a + b - 1) : a) / b; } template <typename T> T div_floor(T a, T b) { // 切り捨て除算 return a / b - (a % b < 0); } template <typename T> void grid_input(vector<vector<T>> &v, int h, int w) { rep(i,h) { rep(j,w) { cin >> v[i][j]; } } } int main() { ios::sync_with_stdio(false); cin.tie(0); int start,end,eng,jap; cin >> start >> end >> eng >> jap; // 12/start ~ 1/end, jap < eng // can write eng = 1, only jap = 2, else 3 end += 31; int a = end - start; if(eng <= a) { cout << 1 << nl; } elif(jap <= a) { cout << 2 << nl; } else { cout << 3 << nl; } }