結果

問題 No.3499 I Love DAG
コンテスト
ユーザー norioc
提出日時 2026-05-20 09:29:43
言語 Rust
(1.94.0 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 298 ms / 2,000 ms
コード長 535 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 9,516 ms
コンパイル使用メモリ 195,200 KB
実行使用メモリ 30,224 KB
平均クエリ数 18782.41
最終ジャッジ日時 2026-05-20 09:30:06
合計ジャッジ時間 18,052 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
純コード判定待ち
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 40
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused variable: `N`
  --> src/main.rs:18:9
   |
18 |         N: usize,
   |         ^ help: if this is intentional, prefix it with an underscore: `_N`
   |
   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default

ソースコード

diff #
raw source code

#![allow(non_snake_case, unused_imports)]

use proconio::{input, marker::Usize1, marker::Chars};
use itertools::Itertools;

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

fn main() {
    input! {
        N: usize,
        M: usize,
    }

    for _ in 0..M {
        input! {
            A: usize,
            B: usize,
        }

        println!("{}", if A < B { 0 } else { 1 });
    }
}
0