結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
30,976 KB
testcase_01 AC 41 ms
31,108 KB
testcase_02 WA -
testcase_03 AC 44 ms
30,988 KB
testcase_04 AC 44 ms
31,184 KB
testcase_05 AC 41 ms
31,044 KB
testcase_06 AC 40 ms
30,984 KB
testcase_07 WA -
testcase_08 AC 47 ms
33,804 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