Submission #80030


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
#include<bits/stdc++.h>
#define endl "\n"
using namespace std;
int main(){
int n,ans=0;
cin >> n;
for( int i=1; i<=n; i++ ){
ans+=i;
}
cout << ans << endl;
return(0);
}

ステータス

項目 データ
問題 1765 - バイトテロユタカ
ユーザー名 kamba
投稿日時 2024-07-19 12:40:01
言語 C++17
状態 Accepted
得点 3
ソースコード長 183 Byte
最大実行時間 31 ms
最大メモリ使用量 696 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 22 ms 604 KB
1
in2.txt AC 23 ms 696 KB
1
in3.txt AC 31 ms 540 KB
1
in4.txt AC 23 ms 512 KB
1
insample1.txt AC 21 ms 616 KB
1
insample2.txt AC 16 ms 452 KB
1
insample3.txt AC 23 ms 548 KB
1