結果
| 問題 | No.906 Y字グラフ |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2018-08-15 23:37:45 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 207 bytes |
| 記録 | |
| コンパイル時間 | 1,202 ms |
| コンパイル使用メモリ | 208,736 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-07 00:49:07 |
| 合計ジャッジ時間 | 2,584 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 28 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
6 | main(){cin.tie(0);ios::sync_with_stdio(false);
| ^~~~
ソースコード
#include<bits/stdc++.h>
using namespace std;
const int MD=1e9+7;
main(){cin.tie(0);ios::sync_with_stdio(false);
long long N,k;
cin>>N;
N-=4;
k=N%6;
N/=6;
N%=MD;
cout<<((3*N+k)*(N+1)+!k)%MD<<endl;
}
%20