提出 #71468270


ソースコード 拡げる

#include<bits/stdc++.h>
using namespace std;
#define int long long
const int inf = 2000000000000000000;
signed main(){
    int n;cin>>n;
    cout<<(n*(n+1))/2<<"\n";
}

提出情報

提出日時
問題 A - Triangular Number
ユーザ Sabakanmelm
言語 C++23 (GCC 15.2.0)
得点 100
コード長 174 Byte
結果 AC
実行時間 1 ms
メモリ 3548 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 11
セット名 テストケース
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt
ケース名 結果 実行時間 メモリ
example_00.txt AC 1 ms 3548 KiB
example_01.txt AC 1 ms 3516 KiB
example_02.txt AC 1 ms 3492 KiB
hand_00.txt AC 1 ms 3516 KiB
hand_01.txt AC 1 ms 3516 KiB
hand_02.txt AC 1 ms 3516 KiB
random_00.txt AC 1 ms 3416 KiB
random_01.txt AC 1 ms 3516 KiB
random_02.txt AC 1 ms 3340 KiB
random_03.txt AC 1 ms 3472 KiB
random_04.txt AC 1 ms 3420 KiB