結果

問題 No.548 国士無双
ユーザー tazakkytazakky
提出日時 2017-09-07 19:38:04
言語 PHP
(8.2.11)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 411 bytes
コンパイル時間 7,488 ms
コンパイル使用メモリ 32,356 KB
実行使用メモリ 33,092 KB
最終ジャッジ日時 2023-10-17 16:20:22
合計ジャッジ時間 9,689 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
33,092 KB
testcase_01 AC 42 ms
33,092 KB
testcase_02 AC 42 ms
33,092 KB
testcase_03 AC 42 ms
33,092 KB
testcase_04 AC 42 ms
33,092 KB
testcase_05 AC 42 ms
33,092 KB
testcase_06 AC 43 ms
33,092 KB
testcase_07 AC 42 ms
33,092 KB
testcase_08 AC 42 ms
33,092 KB
testcase_09 AC 41 ms
33,092 KB
testcase_10 AC 43 ms
33,092 KB
testcase_11 AC 42 ms
33,092 KB
testcase_12 AC 42 ms
33,092 KB
testcase_13 AC 44 ms
33,092 KB
testcase_14 AC 42 ms
33,092 KB
testcase_15 AC 41 ms
33,092 KB
testcase_16 AC 42 ms
33,092 KB
testcase_17 AC 43 ms
33,092 KB
testcase_18 AC 43 ms
33,092 KB
testcase_19 AC 42 ms
33,092 KB
testcase_20 AC 43 ms
33,032 KB
testcase_21 AC 43 ms
33,092 KB
testcase_22 AC 43 ms
33,032 KB
testcase_23 AC 43 ms
33,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    $input = preg_split("//u", trim(fgets(STDIN)), -1, PREG_SPLIT_NO_EMPTY);
    $list = array("a","b","c","d","e","f","g","h","i","j","k","l","m");
    $diff = array_diff($list, $input);
    sort($diff);
    
    if(count($diff) == 0){
        echo "a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk\nl\nm";
    }elseif(count($diff) == 1){
        echo $diff[0]."\n";
    }else{
        echo "Impossible\n";
    }
    
?>
0