結果
| 問題 |
No.420 mod2漸化式
|
| コンテスト | |
| ユーザー |
RedSpica
|
| 提出日時 | 2022-06-24 19:54:55 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 276 bytes |
| コンパイル時間 | 601 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-08 16:10:03 |
| 合計ジャッジ時間 | 2,755 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 34 WA * 1 |
ソースコード
x=int(input())
if x>31:
print(0,0)
exit()
cnt=1
for d in range(31,31-x,-1):
cnt*=d
for d in range(1,x+1):
cnt//=d
cur=1
for d in range(30,30-(x-1),-1):
cur*=d
for d in range(1,x):
cur//=d
ans=0
for d in range(31):
ans+=cur*(2**d)
print(cnt,ans)
RedSpica