Submission #78294


ソースコード

1
2
3
4
5
6
7
8
9
10
11
#include<stdio.h>
int main(){
long long N,c=0;
scanf("%lld",&N);
while(0<N){
c+=N;
N--;
}
printf("%lld\n",c);
return(0);
}

ステータス

項目 データ
問題 1765 - バイトテロユタカ
ユーザー名 r2422
投稿日時 2024-04-23 17:15:08
言語 C
状態 Accepted
得点 3
ソースコード長 172 Byte
最大実行時間 30 ms
最大メモリ使用量 588 KB

セット

セット 得点 Cases
1 ALL 3 / 3 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 23 ms 504 KB
1
in2.txt AC 14 ms 312 KB
1
in3.txt AC 20 ms 320 KB
1
in4.txt AC 30 ms 364 KB
1
insample1.txt AC 25 ms 444 KB
1
insample2.txt AC 19 ms 588 KB
1
insample3.txt AC 23 ms 540 KB
1