結果

問題 No.333 門松列を数え上げ
ユーザー papinianuspapinianus
提出日時 2016-07-27 09:02:39
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 194 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 32,148 KB
実行使用メモリ 32,528 KB
最終ジャッジ日時 2024-04-24 09:51:11
合計ジャッジ時間 1,262 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
30,896 KB
testcase_01 AC 41 ms
31,140 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 41 ms
30,900 KB
testcase_08 AC 40 ms
31,076 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

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

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