結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
19,024 KB
testcase_01 AC 16 ms
19,092 KB
testcase_02 AC 16 ms
19,072 KB
testcase_03 AC 16 ms
19,084 KB
testcase_04 AC 16 ms
19,188 KB
testcase_05 AC 15 ms
19,064 KB
testcase_06 AC 15 ms
19,020 KB
testcase_07 AC 15 ms
19,036 KB
testcase_08 AC 16 ms
19,104 KB
testcase_09 AC 16 ms
19,108 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