結果
| 問題 | No.1500 Super Knight | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-05-07 21:44:17 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 245 bytes | 
| コンパイル時間 | 691 ms | 
| コンパイル使用メモリ | 65,920 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-15 09:33:46 | 
| 合計ジャッジ時間 | 1,642 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 33 | 
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main()
      | ^~~~
            
            ソースコード
#include<iostream>
#include<atcoder/modint>
using namespace std;
using mint=atcoder::modint1000000007;
int N;
main()
{
	cin>>N;
	if(N==1)cout<<12<<endl;
	else if(N==2)cout<<65<<endl;
	else
	{
		mint n=N;
		cout<<(17*n*n+6*n+1).val()<<endl;
	}
}
            
            
            
        