結果

問題 No.3725 Exploit Wall
コンテスト
ユーザー cacampu
提出日時 2026-09-19 15:24:43
言語 Rust
(1.97.1 + proconio + num + itertools + ACL)
コンパイル:
/usr/bin/rustc_custom
実行:
./target/release/main
結果
AC  
実行時間 0 ms / 2,000 ms
+ 880µs
コード長 331 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,948 ms
コンパイル使用メモリ 192,512 KB
実行使用メモリ 10,004 KB
最終ジャッジ日時 2026-09-19 15:24:55
合計ジャッジ時間 9,746 ms
ジャッジサーバーID
(参考情報)
judge4_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 59
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

use proconio::input;

fn main() {
    input! {
        n: usize,
    }
    let mut ans = vec![vec!['.'; n]; n];
    for i in 0..n {
        ans[i][n - 1 - i] = '#';
        if i < n - 1 {
            ans[i + 1][n - 1 - i] = '#';
        }
    }
    for row in ans {
        println!("{}", row.iter().collect::<String>());
    }
}

0