結果

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

ソースコード

diff #

#include <stdio.h>
int total(int a)
{
	int i;
	int total = 0;
	for(i=1;i<=a;i++){
		total+=i;
	}
	return total;
}
int main(void){
	int n;
	
	scanf("%d",&n);
	printf("%d\n",total(n));
}
0