結果
| 問題 |
No.1491 銀将
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-30 22:08:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 358 bytes |
| コンパイル時間 | 886 ms |
| コンパイル使用メモリ | 80,656 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-19 01:33:23 |
| 合計ジャッジ時間 | 1,652 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
#include <iostream>
#include <algorithm>
#include <tuple>
#include <vector>
#include <string>
#include <queue>
#include <cmath>
#include <set>
#include <map>
#include <cassert>
using namespace std;
using ll = long long;
int main()
{
ll k;
cin >> k;
ll ans = (2*k+1)*(2*k+1);
ans = ans - (3+(k-1)*4);
cout << ans << endl;
return 0;
}