Submission #78204


ソースコード

1
2
3
4
5
6
7
#include<bits/stdc++.h>
using namespace std;
#define int long long
main(){
int n;cin>>n;
cout<<(n*n+n)/2<<"\n";
}

ステータス

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

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in1.txt AC 28 ms 604 KB
1
in2.txt AC 23 ms 700 KB
1
in3.txt AC 21 ms 548 KB
1
in4.txt AC 19 ms 516 KB
1
insample1.txt AC 17 ms 616 KB
1
insample2.txt AC 19 ms 464 KB
1
insample3.txt AC 18 ms 560 KB
1