結果

問題 No.333 門松列を数え上げ
ユーザー papinianuspapinianus
提出日時 2016-07-27 09:05:05
言語 PHP
(8.3.4)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 70 ms
コンパイル使用メモリ 30,668 KB
実行使用メモリ 30,944 KB
最終ジャッジ日時 2024-04-24 10:19:19
合計ジャッジ時間 935 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
30,664 KB
testcase_01 AC 36 ms
30,684 KB
testcase_02 AC 39 ms
30,716 KB
testcase_03 AC 43 ms
30,856 KB
testcase_04 AC 38 ms
30,756 KB
testcase_05 AC 36 ms
30,920 KB
testcase_06 AC 38 ms
30,724 KB
testcase_07 AC 37 ms
30,540 KB
testcase_08 AC 36 ms
30,944 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
list($left, $center) = explode(" ",trim(fgets(STDIN)));
$max = "2000000000";

if($left > $center) {
    $right = $max - $center - 1;
} else {
    $right = $center - 1 - 1;
}
echo $right;
echo PHP_EOL;
0