結果

問題 No.1491 銀将
ユーザー shiomusubi496
提出日時 2021-04-30 21:28:29
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 202 bytes
コンパイル時間 1,522 ms
コンパイル使用メモリ 166,140 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-18 23:48:47
合計ジャッジ時間 1,817 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define int long long
using namespace std;
int square_sum(int a){
    return a*a+(a-1)*(a-1);
}
signed main(){
    int K; cin>>K;
    cout<<square_sum(K)+square_sum(K+1)<<endl;
}
0