結果
| 問題 |
No.557 点対称
|
| ユーザー |
convexineq
|
| 提出日時 | 2021-02-25 05:34:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 167 bytes |
| コンパイル時間 | 277 ms |
| コンパイル使用メモリ | 81,760 KB |
| 実行使用メモリ | 53,508 KB |
| 最終ジャッジ日時 | 2024-09-25 05:14:14 |
| 合計ジャッジ時間 | 2,412 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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