結果
| 問題 |
No.557 点対称
|
| ユーザー |
ats5515
|
| 提出日時 | 2017-08-11 23:26:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 365 bytes |
| コンパイル時間 | 538 ms |
| コンパイル使用メモリ | 63,196 KB |
| 実行使用メモリ | 13,640 KB |
| 最終ジャッジ日時 | 2024-10-12 21:58:08 |
| 合計ジャッジ時間 | 3,913 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 TLE * 1 -- * 28 |
ソースコード
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <math.h>
using namespace std;
#define int long long
int MOD = 1000000007;
signed main() {
int N;
cin >> N;
int res = 4;
for (int i = 1; i < (N) / 2; i++) {
res = (res * 5) % MOD;
}
if (N % 2 == 1) {
res *= 3;
}
if (N == 1) res = 2;
cout << res << endl;
return 0;
}
ats5515