結果
問題 |
No.480 合計
|
ユーザー |
![]() |
提出日時 | 2019-09-12 00:21:44 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 179 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-02 16:55:58 |
合計ジャッジ時間 | 877 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
コンパイルメッセージ
main.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int] 3 | main() { | ^~~~
ソースコード
#include <stdio.h> main() { int max; int sum = 0; scanf("%d", &max); for (int j = 1; j <= max; j++) { sum += j; } printf("%d\n", sum); }