結果

問題 No.480 合計
ユーザー kame_2211
提出日時 2019-04-30 13:15:09
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 162 bytes
コンパイル時間 1,456 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-29 18:54:52
合計ジャッジ時間 2,155 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void) {
	int x;
	scanf("%d", &x);
	int i;
	int ans = 0;
	for (i = 1;i <= x; i++) {
		ans += i;
	}
	printf("%d\n", ans);
	return 0;
}
0