結果

問題 No.1335 1337
ユーザー Maeda
提出日時 2025-08-25 17:16:26
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 498 bytes
コンパイル時間 2,436 ms
コンパイル使用メモリ 80,064 KB
実行使用メモリ 46,732 KB
最終ジャッジ日時 2025-08-25 17:16:32
合計ジャッジ時間 5,781 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other AC * 2 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String sample = scan.nextLine();
		String str = scan.nextLine();
	
		for (int i = 0; i < str.length(); i++) {
			if (Character.getNumericValue(str.charAt(i)) >= 0 && Character.getNumericValue(str.charAt(i)) <= 9 ) {
				System.out.print(sample.charAt(Character.getNumericValue(str.charAt(i))));
				break;
			}else{
				System.out.print(str.charAt(i));
			}
		}
    }
}
0