結果

問題 No.1335 1337
ユーザー takutakutakutaku
提出日時 2021-05-31 09:29:43
言語 PHP
(8.3.4)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 1,750 ms
コンパイル使用メモリ 32,148 KB
実行使用メモリ 31,444 KB
最終ジャッジ日時 2024-04-26 07:59:17
合計ジャッジ時間 1,924 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
31,392 KB
testcase_01 AC 35 ms
31,032 KB
testcase_02 AC 34 ms
31,088 KB
testcase_03 AC 33 ms
31,344 KB
testcase_04 AC 33 ms
31,444 KB
testcase_05 AC 33 ms
31,104 KB
testcase_06 AC 33 ms
30,992 KB
testcase_07 AC 34 ms
31,216 KB
testcase_08 AC 33 ms
31,056 KB
testcase_09 AC 37 ms
31,268 KB
testcase_10 AC 42 ms
31,068 KB
testcase_11 AC 40 ms
31,268 KB
testcase_12 AC 40 ms
31,184 KB
testcase_13 AC 40 ms
31,132 KB
testcase_14 AC 40 ms
31,340 KB
testcase_15 AC 40 ms
31,404 KB
testcase_16 AC 41 ms
31,224 KB
testcase_17 AC 41 ms
31,060 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    $A = fgets(STDIN);
    $S = fgets(STDIN);
    
    $array_A = str_split($A);
    $array_S = str_split($S);
    
    for($i = 0; $i < strlen($S); $i++) {
        if('0' <= $array_S[$i] && $array_S[$i] <= '9'){
            echo $array_A[$array_S[$i]];
        } else {
            echo $array_S[$i];
        }
    }
?>
0