結果
問題 | No.1491 銀将 |
ユーザー | ぷら |
提出日時 | 2021-04-30 21:25:11 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 2,888 ms |
コンパイル使用メモリ | 191,164 KB |
最終ジャッジ日時 | 2025-01-21 02:30:34 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; long long intpow(long long a, long long b){ long long ans = 1; while(b) { if(b & 1) { ans *= a; } a *= a; b /= 2; } return ans; } int main() { long long K; cin >> K; cout << 4*intpow(K,2)+2 << endl; }