結果
| 問題 | No.1500 Super Knight |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-07 21:44:17 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 357µs | |
| コード長 | 245 bytes |
| 記録 | |
| コンパイル時間 | 345 ms |
| コンパイル使用メモリ | 75,136 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-27 22:12:54 |
| 合計ジャッジ時間 | 2,054 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
}