結果

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

ソースコード

diff #
raw source code

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

int main() {
    int L, R;
    cin >> L >> R;
    int cntl = 0, cntr = 0;
    if (L <= 295)
        cntl = 2;
    else if (L <= 416)
        cntl = 1;
    else
        cntl = 0;
    if (R >= 420)
        cntr = 2;
    else if (R >= 296)
        cntr = 1;
    else
        cntr = 0;
    cout << min(cntl, cntr) << '\n';
}
0