結果
問題 | No.2216 Pa1indr0me |
ユーザー | ekaraage |
提出日時 | 2022-06-09 12:03:38 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 662 bytes |
コンパイル時間 | 4,351 ms |
コンパイル使用メモリ | 262,056 KB |
実行使用メモリ | 4,348 KB |
最終ジャッジ日時 | 2023-10-21 04:27:42 |
合計ジャッジ時間 | 4,782 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,348 KB |
testcase_01 | AC | 2 ms
4,348 KB |
testcase_02 | AC | 2 ms
4,348 KB |
testcase_03 | AC | 2 ms
4,348 KB |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using ll = long long; constexpr long long MOD = 1000000007; constexpr long long MOD2 = 998244353; constexpr long long INF = 1LL << 60; const long double PI = acosl(-1.0); constexpr long double EPS = 1e-11; template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } int main() { ll t; cin >> t; while (t--) { ll n; cin >> n; cout << n * (n + 1) << endl; } }