結果

問題 No.3603 What Question Number Are We On?
コンテスト
ユーザー norioc
提出日時 2026-09-23 17:05:20
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 946µs
コード長 808 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 13,973 ms
コンパイル使用メモリ 187,248 KB
実行使用メモリ 9,900 KB
最終ジャッジ日時 2026-09-23 17:05:37
合計ジャッジ時間 5,652 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 42
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: constant `MOD` is never used
  --> src/main.rs:23:7
   |
23 | const MOD: usize = 998244353;
   |       ^^^
   |
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

ソースコード

diff #
raw source code

#![allow(non_snake_case, unused_imports)]

use itertools::Itertools;
use proconio::{input, marker::Chars, marker::Usize1};
use std::cmp::{Reverse, max, min};
use std::collections::{BinaryHeap, HashMap, HashSet, VecDeque};

#[allow(unused_macros)]
macro_rules! d {
    ( $( $x:expr ),* $(,)? ) => {
        eprintln!(
            concat!( $( stringify!($x), "={:?} " ),* ),
            $( $x ),*
        );
    };
}

#[allow(dead_code)]
fn yn(b: bool) -> &'static str {
    if b { "Yes" } else { "No" }
}

const MOD: usize = 998244353;

fn main() {
    input! {
        Q: usize,
    }

    for i in 0..Q {
        input! { t: usize }
        let res = if t == 1 {
            input! { A: usize, B: usize }
            A + B
        } else {
            i + 1
        };

        println!("{}", res);
    }
}
0