結果

問題 No.3261 yiwiy9 → yiwiY9
ユーザー lp_ql
提出日時 2025-09-06 13:15:37
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 248 bytes
コンパイル時間 13,990 ms
コンパイル使用メモリ 393,832 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-09-06 13:17:36
合計ジャッジ時間 14,432 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 17
権限があれば一括ダウンロードができます
コンパイルメッセージ
warning: unused import: `marker::Chars`
 --> src/main.rs:1:23
  |
1 | use proconio::{input, marker::Chars};
  |                       ^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused variable: `w`
 --> src/main.rs:5:9
  |
5 |         w: usize,
  |         ^ help: if this is intentional, prefix it with an underscore: `_w`
  |
  = note: `#[warn(unused_variables)]` on by default

ソースコード

diff #

use proconio::{input, marker::Chars};
fn main() {
    input!{
        h: usize,
        w: usize,
        mut s: [String; h]
    }
    for s in s.iter_mut(){
        println!("{}", s.replace("yiwiy9", "yiwiY9").replace("9yiwiy", "9Yiwiy"));
    }
}
0