結果
問題 |
No.410 出会い
|
ユーザー |
![]() |
提出日時 | 2016-08-29 21:35:38 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 30,996 KB |
実行使用メモリ | 31,344 KB |
最終ジャッジ日時 | 2024-06-28 11:11:58 |
合計ジャッジ時間 | 1,816 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php list($x1,$y1)=explode(" ",trim(fgets(STDIN))); list($x2,$y2)=explode(" ",trim(fgets(STDIN))); $ans=0; if($x1>=$x2){ $time_x=($x1-$x2)/2; }else{ $time_x=($x2-$x1)/2; } if($y1>=$y2){ $time_y=($y1-$y2)/2; }else{ $time_y=($y2-$y1)/2; } $ans=$time_x+$time_y; echo $ans.PHP_EOL;