結果
問題 | No.557 点対称 |
ユーザー |
![]() |
提出日時 | 2017-07-19 09:04:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 251 bytes |
コンパイル時間 | 540 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 15,744 KB |
最終ジャッジ日時 | 2024-10-08 14:09:34 |
合計ジャッジ時間 | 4,228 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 1 TLE * 1 -- * 28 |
ソースコード
n = int(input())if n == 1:print(2)exit()ret = 1if n % 2 == 1:ret *= 3n -= 1n //= 2if n:ret *= 4n -= 1t = retmod = 1000000007for i in range(n):t *= 5t %= modret *= pow(5, n, mod)print(t)print(ret)