結果

問題 No.975 ミスターマックスバリュ
ユーザー Yoichiro NishimuraYoichiro Nishimura
提出日時 2020-02-06 10:35:14
言語 PHP
(8.3.4)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 346 bytes
コンパイル時間 2,005 ms
コンパイル使用メモリ 32,392 KB
実行使用メモリ 36,640 KB
最終ジャッジ日時 2023-10-25 09:48:09
合計ジャッジ時間 2,362 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
32,636 KB
testcase_01 AC 43 ms
32,636 KB
testcase_02 AC 44 ms
32,636 KB
testcase_03 AC 44 ms
32,636 KB
testcase_04 AC 44 ms
32,636 KB
testcase_05 AC 44 ms
32,636 KB
testcase_06 AC 44 ms
32,636 KB
testcase_07 AC 44 ms
32,636 KB
testcase_08 AC 50 ms
36,640 KB
testcase_09 AC 43 ms
32,636 KB
testcase_10 AC 44 ms
32,636 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
fscanf(STDIN, "%d%d%d", $a, $b, $c);
$B = array_map("intval", explode(" ", trim(fgets(STDIN))));
$C = array_map("intval", explode(" ", trim(fgets(STDIN))));
if(in_array($a, $B) && in_array($a, $C)){
    echo "MrMaxValu\n";
}elseif(in_array($a, $B)){
    echo "MrMax\n";
}elseif(in_array($a, $C)){
    echo "MaxValu\n";
}else{
    echo -1;
}
0