結果

問題 No.1335 1337
ユーザー Maeda
提出日時 2025-08-25 17:15:55
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 502 bytes
コンパイル時間 3,008 ms
コンパイル使用メモリ 77,024 KB
実行使用メモリ 46,660 KB
最終ジャッジ日時 2025-08-25 17:16:03
合計ジャッジ時間 6,014 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 14
権限があれば一括ダウンロードができます

ソースコード

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.println(sample.charAt(Character.getNumericValue(str.charAt(i))));
				break;
			}else{
				System.out.println(str.charAt(i));
			}
		}
    }
}
0