結果
問題 |
No.3261 yiwiy9 → yiwiY9
|
ユーザー |
![]() |
提出日時 | 2025-09-09 14:14:18 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 604 bytes |
コンパイル時間 | 2,450 ms |
コンパイル使用メモリ | 76,316 KB |
実行使用メモリ | 41,800 KB |
最終ジャッジ日時 | 2025-09-09 14:14:26 |
合計ジャッジ時間 | 7,955 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 29 |
ソースコード
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.nextLine(); if(iwi.charAt(0) == '.'){ for(int j = 0 ; j < w-6;j++){ System.out.print("."); } System.out.println("yiwiY9"); }else{ System.out.println("9Yiwiy"); for(int j = 0 ; j < w-6;j++){ System.out.print("."); } } } } }