Submission #78404


ソースコード

1
2
3
4
5
6
7
8
9
10
#include<stdio.h>
int main(){
long long x,y=0;
scanf("%lld",&x);
for(int i=1;x>=i;i++){
y+=i;
}
printf("%lld\n",y);
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 21 ms 220 KB
1
in2.txt AC 20 ms 268 KB
1
in3.txt AC 17 ms 324 KB
1
in4.txt AC 19 ms 280 KB
1
insample1.txt AC 19 ms 308 KB
1
insample2.txt AC 18 ms 492 KB
1
insample3.txt AC 14 ms 416 KB
1