結果

問題 No.3677 Global Checksum
コンテスト
ユーザー macaroni5708
提出日時 2026-09-19 14:40:49
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
TLE  
実行時間 -
コード長 727 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 8,003 ms
コンパイル使用メモリ 199,244 KB
実行使用メモリ 56,940 KB
最終ジャッジ日時 2026-09-19 14:41:17
合計ジャッジ時間 21,960 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 TLE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#[allow(unused_imports)]
use {
    ac_library::{ModInt as Mint, *},
    itertools::{iproduct, Itertools},
    proconio::{fastout, input, marker::*},
    std::collections::*,
};
#[allow(unused_macros)]
macro_rules! debug {
    ($($a:expr),* $(,)*) => {
        #[cfg(debug_assertions)]
        eprintln!(concat!($("| ", stringify!($a), "={:?} "),*, "|"), $(&$a),*);
    };
}

#[fastout]
fn main() {
    input! {h:usize,w:usize,a:[[u32;w];h]}
    let mut t: u32 = 0;
    for i in 0..h {
        for j in 0..w {
            t = t.wrapping_add(a[i][j]);
        }
    }
    for i in 0..h {
        let mut ans = t;
        for j in 0..w {
            ans = ans.wrapping_add(a[i][j]);
        }
        println!("{}", ans);
    }
}
0