結果

問題 No.1500 Super Knight
ユーザー karinohito
提出日時 2021-07-23 11:29:51
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 574 bytes
コンパイル時間 1,402 ms
コンパイル使用メモリ 170,100 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-18 07:50:11
合計ジャッジ時間 2,529 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 4 WA * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

//#include <atcoder/all>
#include <bits/stdc++.h>
using namespace std;
//using namespace atcoder;
using ll = long long;
#define all(A) A.begin(),A.end()
using vll = vector<ll>;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
using Graph = vector<vector<ll>>;
Graph G;
vll dist;
vector<bool> seen;
ll gcd(ll(a), ll(b)) {
	ll c = a;
	while (a % b != 0) {
		c = a % b;
		a = b;
		b = c;
	}
	return b;
}
int main() {
	ll N;
	cin>>N;
	if(N==0)cout<<1<<endl;
	else if(N==1)cout<<"12"<<endl;
	else if(N==2)cout<<65<<endl;
	else{
		cout<<N*N*17+6*N+1<<endl;
	}
	
}
0