結果

問題 No.3668 Minimum Cut
コンテスト
ユーザー titan23
提出日時 2026-09-05 00:07:03
言語 Rust
(1.97.1 + proconio + num + itertools)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
RE  
実行時間 -
コード長 477 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,746 ms
コンパイル使用メモリ 190,672 KB
実行使用メモリ 9,796 KB
最終ジャッジ日時 2026-09-05 00:07:24
合計ジャッジ時間 5,138 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1 RE * 2
other WA * 2 RE * 37
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: variable `A` should have a snake case name
 --> src/main.rs:7:9
  |
7 |         A: [[usize; w]; h],
  |         ^ help: convert the identifier to snake case: `a`
  |
  = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default

warning: variable `S` should have a snake case name
  --> src/main.rs:11:13
   |
11 |     let mut S: Vec<usize> = vec![0; h];
   |             ^ help: convert the identifier to snake case (notice the capitalization): `s`

warning: variable `T` should have a snake case name
  --> src/main.rs:12:13
   |
12 |     let mut T: usize = 0;
   |             ^ help: convert the identifier to snake case: `t`

ソースコード

diff #
raw source code

use proconio::input;

fn main() {
    input! {
        h: usize,
        w: usize,
        A: [[usize; w]; h],
    }

    let msk: usize = 4294967295;
    let mut S: Vec<usize> = vec![0; h];
    let mut T: usize = 0;
    for i in 0..h {
        let mut s: usize = 0;
        for j in 0..w {
            s += A[i][j];
            s &= msk;
        }
        S[i] = s;
        T += s;
        T &= msk;
    }
    for i in 0..h {
        println!("{}", (S[i] + T) & msk);
    }
}
0