結果
| 問題 |
No.1491 銀将
|
| コンテスト | |
| ユーザー |
mono_0812
|
| 提出日時 | 2021-04-30 21:48:49 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 474 bytes |
| コンパイル時間 | 1,559 ms |
| コンパイル使用メモリ | 164,812 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-19 01:09:46 |
| 合計ジャッジ時間 | 2,240 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define int long long
#define ZERO(x) memset(x,0,sizeof(x))
#define print(x) cout << x << endl;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
signed main(){
int k;
cin >> k;
print(4*(k*k) + 2);
}
mono_0812