結果

問題 No.480 合計
ユーザー tana_ffeetana_ffee
提出日時 2020-05-30 00:21:28
言語 PHP
(8.3.4)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 30,812 KB
実行使用メモリ 31,196 KB
最終ジャッジ日時 2024-04-24 02:56:08
合計ジャッジ時間 1,837 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
30,936 KB
testcase_01 AC 41 ms
30,768 KB
testcase_02 AC 41 ms
30,832 KB
testcase_03 AC 41 ms
30,760 KB
testcase_04 AC 42 ms
30,940 KB
testcase_05 AC 41 ms
30,772 KB
testcase_06 AC 41 ms
30,944 KB
testcase_07 AC 41 ms
31,020 KB
testcase_08 AC 41 ms
30,880 KB
testcase_09 AC 42 ms
30,740 KB
testcase_10 AC 41 ms
31,192 KB
testcase_11 AC 41 ms
30,816 KB
testcase_12 AC 40 ms
31,088 KB
testcase_13 AC 41 ms
30,992 KB
testcase_14 AC 41 ms
30,784 KB
testcase_15 AC 41 ms
31,064 KB
testcase_16 AC 41 ms
31,096 KB
testcase_17 AC 42 ms
31,060 KB
testcase_18 AC 40 ms
30,924 KB
testcase_19 AC 40 ms
31,196 KB
testcase_20 AC 40 ms
30,928 KB
testcase_21 AC 42 ms
30,652 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php

$input1 = trim(fgets(STDIN));
$count = 0;
for ($i=1; $i < $input1+1; $i++) {
	$count+=$i;
}
echo $count;
0