結果
| 問題 | No.557 点対称 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-21 15:46:38 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 381 bytes |
| 記録 | |
| コンパイル時間 | 592 ms |
| コンパイル使用メモリ | 80,668 KB |
| 実行使用メモリ | 11,168 KB |
| 最終ジャッジ日時 | 2026-02-21 15:46:43 |
| 合計ジャッジ時間 | 4,387 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 -- * 28 |
ソースコード
#include <iostream>
#include <cstdio>
using namespace std;
typedef long long LL;
const int MOD = 1000000007;
LL n, ans;
int main() {
scanf("%lld", &n);
ans = n % 2 ? 3LL : 1LL;
if (n % 2) --n;
n /= 2;
for (int i = 0; i < n; ++i) {
if (i == 0) ans = ans * 4 % MOD;
else ans = ans * 5 % MOD;
}
printf("%lld\n", ans);
return 0;
}