結果

問題 No.587 七対子
ユーザー PicklesSuperiorPicklesSuperior
提出日時 2018-10-15 04:05:53
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 708 bytes
コンパイル時間 3,113 ms
コンパイル使用メモリ 31,884 KB
実行使用メモリ 32,400 KB
最終ジャッジ日時 2024-04-20 20:22:59
合計ジャッジ時間 5,451 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 38 ms
30,684 KB
testcase_02 AC 38 ms
30,456 KB
testcase_03 AC 38 ms
30,728 KB
testcase_04 AC 39 ms
30,648 KB
testcase_05 AC 39 ms
30,964 KB
testcase_06 AC 38 ms
30,904 KB
testcase_07 AC 38 ms
30,888 KB
testcase_08 AC 38 ms
30,752 KB
testcase_09 AC 35 ms
30,812 KB
testcase_10 AC 35 ms
30,904 KB
testcase_11 AC 35 ms
30,732 KB
testcase_12 AC 35 ms
30,736 KB
testcase_13 AC 38 ms
30,852 KB
testcase_14 AC 36 ms
30,472 KB
testcase_15 AC 38 ms
30,812 KB
testcase_16 WA -
testcase_17 AC 35 ms
30,896 KB
testcase_18 AC 38 ms
30,764 KB
testcase_19 AC 38 ms
30,680 KB
testcase_20 AC 35 ms
30,848 KB
testcase_21 AC 35 ms
30,636 KB
testcase_22 AC 36 ms
30,688 KB
testcase_23 AC 36 ms
30,940 KB
testcase_24 AC 39 ms
30,720 KB
testcase_25 AC 38 ms
30,952 KB
testcase_26 AC 38 ms
30,996 KB
testcase_27 AC 36 ms
30,768 KB
testcase_28 AC 37 ms
30,716 KB
testcase_29 AC 37 ms
30,972 KB
testcase_30 WA -
testcase_31 AC 37 ms
30,556 KB
testcase_32 AC 38 ms
30,720 KB
testcase_33 AC 37 ms
30,720 KB
testcase_34 AC 38 ms
30,836 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

    $input = fgets(STDIN);
    $pool = array();
    $flag = "EMPTY";
    $pool_count = 0;

    for($i=0 ; $i<13 ; $i++){
        for($j=0 ; $j<$pool_count ; $j++){
            if($pool[$j][0] == $input[$i]){
                $pool[$j][1] += 1;
                $flag = "IN";
                break;
            }
        }
        if($flag == "EMPTY"){
            $pool[$pool_count][0] = $input[$i];
            $pool[$pool_count][1] = 1;
            $pool_count += 1;
        }
        $flag = "EMPTY";
    }


    if($pool_count != 7){
        print("Impossible\n");
    }else{
        for($i=0 ; $i<$pool_count ; $i++){
            if($pool[$i][1] == 1) print($pool[$i][0] . "\n");
        }
    }
?>
0