結果

問題 No.276 連続する整数の和(1)
ユーザー papinianuspapinianus
提出日時 2016-09-02 13:23:10
言語 PHP
(7.2.24)
結果
AC  
実行時間 16 ms / 1,000 ms
コード長 84 bytes
コンパイル時間 42 ms
実行使用メモリ 19,472 KB
最終ジャッジ日時 2022-12-16 12:36:28
合計ジャッジ時間 1,171 ms
ジャッジサーバーID
(参考情報)
judge15 / judge10
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
19,140 KB
testcase_01 AC 16 ms
19,124 KB
testcase_02 AC 16 ms
19,428 KB
testcase_03 AC 16 ms
19,256 KB
testcase_04 AC 16 ms
19,324 KB
testcase_05 AC 15 ms
19,028 KB
testcase_06 AC 15 ms
19,340 KB
testcase_07 AC 16 ms
19,276 KB
testcase_08 AC 15 ms
19,472 KB
testcase_09 AC 16 ms
19,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));
$rest = ($n * ($n - 1)) / 2;
echo gmp_gcd($n, $rest);
0