結果

問題 No.3259 C++ → Rust → Python
ユーザー tetra4
提出日時 2025-09-06 13:05:01
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 438 bytes
コンパイル時間 3,095 ms
コンパイル使用メモリ 274,620 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-09-06 13:05:06
合計ジャッジ時間 4,114 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

using ll = int64_t;

ll L, R;

void input() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cin >> L >> R;
}

void solve() {
    ll l, r;
    if (L <= 295) l = 0;
    else if (L <= 416) l = 1;
    else l = 2;
    if (R <= 295) r = 0;
    else if (R <= 416) r = 1;
    else r = 2;
    cout << r-l << endl;
}

int main() {
    input();
    solve();
    return 0;
}

/* 考察

*/
0