結果
| 問題 |
No.541 3 x N グリッド上のサイクルの個数
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-25 22:19:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 182 bytes |
| コンパイル時間 | 613 ms |
| コンパイル使用メモリ | 66,704 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-15 15:45:26 |
| 合計ジャッジ時間 | 2,180 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 62 |
ソースコード
#include <iostream>
#include <cmath>
using namespace std;
#define ll long long
#define mod 1000000007
int main(){
ll N;
cin >> N;
cout << ((N*(N-1))%mod)*3 %mod << endl;
return 0;
}