結果

問題 No.975 ミスターマックスバリュ
ユーザー u2oKkg4jyEzHebfu2oKkg4jyEzHebf
提出日時 2020-02-28 09:04:16
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 341 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 30,788 KB
実行使用メモリ 33,680 KB
最終ジャッジ日時 2024-04-21 17:25:55
合計ジャッジ時間 1,100 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
31,112 KB
testcase_01 AC 43 ms
31,088 KB
testcase_02 WA -
testcase_03 AC 40 ms
30,980 KB
testcase_04 AC 40 ms
31,120 KB
testcase_05 AC 40 ms
31,392 KB
testcase_06 AC 41 ms
31,240 KB
testcase_07 WA -
testcase_08 AC 46 ms
33,680 KB
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$a=fgets(STDIN);
$b=fgets(STDIN);
$c=fgets(STDIN);
$a=explode(" ",$a);
$b=explode(" ",$b);
$c=explode(" ",$c);
// var_dump($b);
if(array_search($a[0],$b) && array_search($a[0],$b)){
  echo "MrMaxValu";  
}elseif (array_search($a[0],$c)){
    echo "MrMax";
}elseif (array_search($a[0],$b)) {
    echo "MaxValu";
}else{
    echo "-1";
}
0