結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-19 14:34:43 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 731 bytes |
| 記録 | |
| コンパイル時間 | 871 ms |
| コンパイル使用メモリ | 200,508 KB |
| 実行使用メモリ | 60,792 KB |
| 最終ジャッジ日時 | 2026-09-19 14:35:22 |
| 合計ジャッジ時間 | 18,924 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 TLE * 3 |
ソースコード
#[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 s = vec![0u32; h];
for i in 0..h {
for j in 0..w {
s[i] = s[i].wrapping_add(a[i][j]);
}
}
let t: u32 = s.iter().copied().reduce(|x, y| x.wrapping_add(y)).unwrap();
for i in 0..h {
println!("{}", t.wrapping_add(s[i]));
}
}