結果

問題 No.480 合計
ユーザー Maeda
提出日時 2025-03-03 10:21:11
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 209 bytes
コンパイル時間 141 ms
コンパイル使用メモリ 25,088 KB
実行使用メモリ 8,608 KB
最終ジャッジ日時 2025-03-03 10:21:23
合計ジャッジ時間 1,016 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
void main(void){
	int n = 0 ,sum = 0;
	int input = scanf("%d",&n);
	if(input == 2){
		printf("入力エラー\n");
	}
	for(int i = 1 ; i <= n ; i++ ){
		sum += i;
	}
    printf("%d",sum);

}
0