結果

問題 No.1491 銀将
ユーザー Mister
提出日時 2021-04-30 21:28:14
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 20 ms / 1,000 ms
コード長 245 bytes
コンパイル時間 538 ms
コンパイル使用メモリ 66,004 KB
最終ジャッジ日時 2025-01-21 02:33:21
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;
using lint = long long;

void solve() {
    lint k;
    cin >> k;
    cout << k * k * 4 + 2 << "\n";
}

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    solve();

    return 0;
}
0