結果
| 問題 | No.3677 Global Checksum |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2026-09-06 00:54:02 |
| 言語 | Rust (1.97.1 + proconio + num + itertools + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 528 bytes |
| 記録 | |
| コンパイル時間 | 672 ms |
| コンパイル使用メモリ | 183,516 KB |
| 実行使用メモリ | 56,832 KB |
| 最終ジャッジ日時 | 2026-09-06 00:54:27 |
| 合計ジャッジ時間 | 12,086 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 TLE * 3 |
ソースコード
use proconio::{input, fastout};
#[fastout]
fn main() {
input! {
h: usize,
w: usize,
// H 行分、それぞれ W 個の整数を持つ2次元配列(グリッド)として一括取得
grid: [u32; w * h],
}
let mut c: Vec<u32> = vec![0; h];
let mut s:u32=0;
for i in 0..h{
let mut x: u32 = 0;
for j in i*w..(i+1)*w {
x += grid[j];
}
c[i] = x;
s=s + x;
}
for i in 0..h{
println!("{}",s + c[i]);
}
}
titia