結果

問題 No.131 マンハッタン距離
ユーザー mizzsigmizzsig
提出日時 2016-12-05 22:15:57
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 155 bytes
コンパイル時間 1,867 ms
コンパイル使用メモリ 30,468 KB
実行使用メモリ 30,860 KB
最終ジャッジ日時 2024-05-05 21:19:01
合計ジャッジ時間 3,808 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
30,744 KB
testcase_01 AC 34 ms
30,584 KB
testcase_02 AC 34 ms
30,596 KB
testcase_03 AC 33 ms
30,400 KB
testcase_04 AC 36 ms
30,496 KB
testcase_05 AC 35 ms
30,856 KB
testcase_06 AC 34 ms
30,668 KB
testcase_07 WA -
testcase_08 AC 34 ms
30,832 KB
testcase_09 AC 33 ms
30,816 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 34 ms
30,692 KB
testcase_13 AC 34 ms
30,600 KB
testcase_14 AC 34 ms
30,620 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 35 ms
30,780 KB
testcase_18 AC 34 ms
30,400 KB
testcase_19 AC 37 ms
30,672 KB
testcase_20 AC 34 ms
30,720 KB
testcase_21 AC 35 ms
30,644 KB
testcase_22 WA -
testcase_23 AC 33 ms
30,772 KB
testcase_24 AC 33 ms
30,560 KB
testcase_25 WA -
testcase_26 AC 32 ms
30,492 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