結果

問題 No.131 マンハッタン距離
ユーザー mizzsigmizzsig
提出日時 2016-12-05 22:15:57
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 155 bytes
コンパイル時間 598 ms
コンパイル使用メモリ 18,728 KB
実行使用メモリ 19,004 KB
最終ジャッジ日時 2023-08-18 16:12:03
合計ジャッジ時間 1,810 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,916 KB
testcase_01 AC 15 ms
18,848 KB
testcase_02 AC 15 ms
18,876 KB
testcase_03 AC 15 ms
18,848 KB
testcase_04 AC 14 ms
18,980 KB
testcase_05 AC 14 ms
18,724 KB
testcase_06 AC 14 ms
18,928 KB
testcase_07 WA -
testcase_08 AC 14 ms
18,772 KB
testcase_09 AC 14 ms
18,924 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 14 ms
18,960 KB
testcase_13 AC 15 ms
18,920 KB
testcase_14 AC 14 ms
18,720 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 15 ms
18,896 KB
testcase_18 AC 14 ms
18,948 KB
testcase_19 AC 14 ms
18,972 KB
testcase_20 AC 14 ms
18,924 KB
testcase_21 AC 14 ms
18,900 KB
testcase_22 WA -
testcase_23 AC 14 ms
18,848 KB
testcase_24 AC 14 ms
18,788 KB
testcase_25 WA -
testcase_26 AC 15 ms
19,004 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
	$in = trim(fgets(STDIN));
	$in = explode(' ', $in);
	
	$ans = 0;
	if(max($in[0], $in[1]) >= $in[2]){
		$ans = min($in) + 1;
	}
	
	echo $ans."\n";
?>
0