結果

問題 No.1217 せしすせそ
ユーザー hiramarihiramari
提出日時 2020-11-30 21:01:44
言語 PHP
(8.3.4)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 347 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 18,516 KB
実行使用メモリ 18,952 KB
最終ジャッジ日時 2023-10-11 03:03:19
合計ジャッジ時間 1,202 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,852 KB
testcase_01 AC 16 ms
18,924 KB
testcase_02 AC 16 ms
18,900 KB
testcase_03 AC 17 ms
18,912 KB
testcase_04 AC 16 ms
18,952 KB
testcase_05 AC 16 ms
18,892 KB
testcase_06 AC 16 ms
18,932 KB
testcase_07 AC 16 ms
18,740 KB
testcase_08 AC 16 ms
18,912 KB
testcase_09 AC 16 ms
18,924 KB
testcase_10 AC 16 ms
18,896 KB
testcase_11 AC 15 ms
18,932 KB
testcase_12 AC 16 ms
18,900 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    list($S) = explode(" ", trim(fgets(STDIN)));
    $s_before = str_split('abcdefghijklmnopqrstuvwxyz');
    $s_after = str_split($S);
    $count = count( $s_before );
    for( $i = 0; $i < $count; ++$i ) {
        if ($s_before[$i] != $s_after[$i]){
            printf($s_before[$i] ."to" .$s_after[$i]);
            break;
        }
    }
0