結果

問題 No.2216 Pa1indr0me
ユーザー hiro71687k
提出日時 2023-02-24 18:46:11
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 345 bytes
コンパイル時間 4,432 ms
コンパイル使用メモリ 250,500 KB
最終ジャッジ日時 2025-02-10 20:15:25
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using namespace std;
using ll=long long;
using ld=double;
ld pie=3.14159265359;
ll mod=998244353;
ll inf=100000001;
int main(){
    ll t;
    cin >> t;
    for (ll o = 0; o < t; o++)
    {
        ll n;
        cin >> n;
        cout << 2+(n+2)*(n-1) << endl;
    }
    
}
0