結果

問題 No.3259 C++ → Rust → Python
ユーザー おんぷの塊
提出日時 2025-09-09 19:28:41
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 479 bytes
コンパイル時間 3,491 ms
コンパイル使用メモリ 273,864 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-09-09 19:28:46
合計ジャッジ時間 4,496 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define endl '\n'

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int L, R; cin >> L >> R;
    bool c = false, r = false, p = false;
    for (int i = L; i <= R; i++) {
        if (1 <= i <= 295) c = true;
        if (296 <= i <= 416) r = true;
        if (417 <= i <= 420) p = true;
    }
    int cnt = 0;
    if (c) cnt++;
    if (r) cnt++;
    if (p) cnt++;
    cout << cnt << endl;
}
0