結果

問題 No.3259 C++ → Rust → Python
コンテスト
ユーザー Mikan04y
提出日時 2026-01-05 01:02:17
言語 C++17
(gcc 15.2.0 + boost 1.89.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 439 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,697 ms
コンパイル使用メモリ 210,356 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-01-05 01:02:20
合計ジャッジ時間 3,232 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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

int main() {
    int L, R;
    cin >> L >> R;
    int ans = 0;
    if (L <= 295) {
        if (R <= 295) {
            ans = 0;
        } else if (R <= 416) {
            ans = 1;
        } else
            ans = 2;
    } else if (L <= 416) {
        if (R <= 416) {
            ans = 0;
        } else {
            ans = 1;
        }
    } else
        ans = 0;

    cout << ans << '\n';
}
0