結果

問題 No.523 LED
ユーザー takepantakepan
提出日時 2017-06-02 22:53:24
言語 PHP
(8.3.4)
結果
AC  
実行時間 1,399 ms / 2,000 ms
コード長 349 bytes
コンパイル時間 5,930 ms
コンパイル使用メモリ 32,464 KB
実行使用メモリ 32,756 KB
最終ジャッジ日時 2023-10-21 22:20:27
合計ジャッジ時間 10,982 ms
ジャッジサーバーID
(参考情報)
judge9 / judge10
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
32,752 KB
testcase_01 AC 45 ms
32,752 KB
testcase_02 AC 61 ms
32,752 KB
testcase_03 AC 45 ms
32,752 KB
testcase_04 AC 45 ms
32,752 KB
testcase_05 AC 1,391 ms
32,752 KB
testcase_06 AC 44 ms
32,752 KB
testcase_07 AC 45 ms
32,756 KB
testcase_08 AC 45 ms
32,752 KB
testcase_09 AC 54 ms
32,752 KB
testcase_10 AC 44 ms
32,752 KB
testcase_11 AC 44 ms
32,752 KB
testcase_12 AC 44 ms
32,752 KB
testcase_13 AC 303 ms
32,752 KB
testcase_14 AC 45 ms
32,752 KB
testcase_15 AC 46 ms
32,752 KB
testcase_16 AC 45 ms
32,752 KB
testcase_17 AC 47 ms
32,752 KB
testcase_18 AC 1,399 ms
32,752 KB
testcase_19 AC 525 ms
32,752 KB
testcase_20 AC 471 ms
32,752 KB
testcase_21 AC 1,054 ms
32,752 KB
testcase_22 AC 1,173 ms
32,752 KB
testcase_23 AC 1,179 ms
32,752 KB
testcase_24 AC 70 ms
32,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    // $a = microtime(true);

    fscanf (STDIN, "%d", $N);
    $ans = 1;
    for ($i = 2; $i <= $N * 2; $i++) {
        if ($i % 2 == 0) {
            $ans *= ($i / 2);
        } else {
            $ans *= $i;
        }
        $ans %= 1000000007;
    }
    echo $ans . PHP_EOL;

    // $b = microtime(true);
    // echo ($b - $a) . PHP_EOL;
0