結果
| 問題 |
No.557 点対称
|
| コンテスト | |
| ユーザー |
treeone
|
| 提出日時 | 2017-08-12 01:10:42 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 489 bytes |
| コンパイル時間 | 1,223 ms |
| コンパイル使用メモリ | 158,336 KB |
| 実行使用メモリ | 13,640 KB |
| 最終ジャッジ日時 | 2024-10-12 22:46:41 |
| 合計ジャッジ時間 | 4,713 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 -- * 28 |
ソースコード
#include <bits/stdc++.h>
#define rep(i, a, n) for(int i = a; i < n; i++)
#define repb(i, a, b) for(int i = a; i >= b; i--)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define int long long
using namespace std;
typedef pair<int, int> P;
const int mod = 1e9 + 7;
signed main(){
int n;
cin >> n;
int ans = 1;
if(n == 1){
cout << 2 << endl;
return 0;
}
ans = 4;
rep(i, 1, n / 2){
(ans *= 5) %= mod;
}
if(n % 2) ans = ans * 3 % mod;
cout << ans << endl;
}
treeone