結果

問題 No.3261 yiwiy9 → yiwiY9
ユーザー Maeda
提出日時 2025-09-09 14:33:14
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 634 bytes
コンパイル時間 3,062 ms
コンパイル使用メモリ 76,192 KB
実行使用メモリ 56,660 KB
最終ジャッジ日時 2025-09-09 14:33:26
合計ジャッジ時間 11,654 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int h = scan.nextInt();
        int w = scan.nextInt();
        for(int i = 0 ; i < h ; i++){
        	String iwi = scan.next();
        	if(iwi.contains("yiwiy9")){
        		for(int j = 0 ; j < w-6;j++){
        			System.out.print(".");
        		}
        		System.out.println("yiwiY9");
        	}else{
        		System.out.print("9Yiwiy");
        		for(int j = 0 ; j < w-6;j++){
        			System.out.print(".");
        		}
        		System.out.println("");
        	}
        }
    }
}
0