結果
| 問題 | No.557 点対称 |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-02-25 05:34:34 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 2,000 ms |
| コード長 | 167 bytes |
| 記録 | |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-12 09:32:48 |
| 合計ジャッジ時間 | 2,162 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
n = int(input())
MOD = 10**9+7
if n%2:
if n==1:
ans = 2
else:
ans = 12*pow(5,n//2-1,MOD)%MOD
else:
ans = 4*pow(5,n//2-1,MOD)%MOD
print(ans)
convexineq