結果
問題 |
No.2216 Pa1indr0me
|
ユーザー |
![]() |
提出日時 | 2023-02-18 11:52:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 634 bytes |
コンパイル時間 | 3,813 ms |
コンパイル使用メモリ | 228,324 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-19 23:17:47 |
合計ジャッジ時間 | 4,236 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> #include <vector> #include <set> #include <queue> #include <utility> #include <map> #include <regex> #include <math.h> #include <random> #include <algorithm> #define pb push_back #define all(x) begin(x), end(x) #define gall(x) begin(x), end(x), greater<>() #define ll long long #define rep(i,x) for(int i=0;i<x;i++) #define P pair<int, int> #define lP pair<ll, ll> using namespace std; using namespace atcoder; using mint=modint998244353; const int INF=1e9; int main() { int t; cin>>t; rep(i,t){ ll n,ans=0; cin>>n; ans=n*(n+1); cout<<ans<<endl; } return 0; }