結果
問題 | No.2216 Pa1indr0me |
ユーザー |
![]() |
提出日時 | 2022-06-09 12:03:11 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 662 bytes |
コンパイル時間 | 3,634 ms |
コンパイル使用メモリ | 251,204 KB |
最終ジャッジ日時 | 2025-01-29 19:17:05 |
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 3 |
ソースコード
#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;}}