結果
問題 |
No.3259 C++ → Rust → Python
|
ユーザー |
|
提出日時 | 2025-09-06 13:02:54 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,042 bytes |
コンパイル時間 | 4,131 ms |
コンパイル使用メモリ | 253,416 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-06 13:03:36 |
合計ジャッジ時間 | 5,055 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace atcoder; using namespace std; // using mint = atcoder::modint998244353; using ll = long long; const int INF = 1001001001; const ll LINF = 3001001001001001001; const int MOD = 998244353; const string Yes = "Yes"; const string No = "No"; #define reps(i, a, n) for (ll i = (a); i < (ll)(n); ++i) #define rep(i, n) reps(i, 0, n) #define all(a) (a).begin(), (a).end() #define rall(a) (a).rbegin(), (a).rend() 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> istream &operator>>(istream &is, vector<T> &v) {for (T &in : v)is >> in;return is;} vector<pair<int,int>> dir4 = {{0,1},{0,-1},{1,0},{-1,0},}; vector<pair<int,int>> dir8 = {{0,1},{0,-1},{1,0},{-1,0},{-1,-1},{-1,1},{1,-1},{1,1},}; int main() { int l,r;cin>>l>>r; int ans = 0; if(l<=295&&296<=r) ans++; if(l<=416&&417<=r) ans++; cout << ans << endl; return 0; }