結果
問題 | No.863 計算量 |
ユーザー |
![]() |
提出日時 | 2019-08-16 21:32:53 |
言語 | C++14 (gcc 12.2.0 + boost 1.81.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 1,442 bytes |
コンパイル時間 | 1,378 ms |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2023-03-31 09:39:02 |
合計ジャッジ時間 | 2,330 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
6,208 KB |
testcase_01 | AC | 1 ms
6,272 KB |
testcase_02 | AC | 1 ms
6,196 KB |
testcase_03 | AC | 2 ms
6,172 KB |
testcase_04 | AC | 1 ms
6,164 KB |
testcase_05 | AC | 1 ms
6,184 KB |
testcase_06 | AC | 1 ms
6,204 KB |
testcase_07 | AC | 1 ms
6,172 KB |
testcase_08 | AC | 2 ms
6,272 KB |
testcase_09 | AC | 1 ms
6,208 KB |
testcase_10 | AC | 1 ms
6,180 KB |
testcase_11 | AC | 1 ms
6,252 KB |
testcase_12 | AC | 1 ms
6,204 KB |
testcase_13 | AC | 1 ms
6,208 KB |
testcase_14 | AC | 1 ms
6,184 KB |
testcase_15 | AC | 2 ms
6,168 KB |
ソースコード
#include <bits/stdc++.h> #define all(vec) vec.begin(), vec.end() using namespace std; using ll = long long; using P = pair<ll, ll>; constexpr ll INF = (1LL << 30) - 1LL; constexpr ll LINF = (1LL << 60) - 1LL; constexpr double eps = 1e-9; constexpr ll MOD = 1000000007LL; template <typename T> bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; }; template <typename T> bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; }; template <typename T> ostream &operator<<(ostream &os, vector<T> v) { for (int i = 0; i < v.size(); i++) { os << v[i] << (i + 1 == v.size() ? "\n" : " "); } return os; } template <typename T> vector<T> make_v(size_t a) { return vector<T>(a); } template <typename T, typename... Ts> auto make_v(size_t a, Ts... ts) { return vector<decltype(make_v<T>(ts...))>(a, make_v<T>(ts...)); } template <typename T, typename V> typename enable_if<is_class<T>::value == 0>::type fill_v(T &t, const V &v) { t = v; } template <typename T, typename V> typename enable_if<is_class<T>::value != 0>::type fill_v(T &t, const V &v) { for (auto &e : t) { fill_v(e, v); } }; int main() { cin.tie(0); ios::sync_with_stdio(false); ll a, b; cin >> a >> b; if (40LL * a < b + 1LL && b < 40LL * (a + 1LL)) { cout << 1 << endl; } else { cout << 2 << endl; } }