結果
| 問題 | No.420 mod2漸化式 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-17 13:54:15 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 1,000 ms |
| コード長 | 289 bytes |
| 記録 | |
| コンパイル時間 | 280 ms |
| コンパイル使用メモリ | 85,228 KB |
| 実行使用メモリ | 57,364 KB |
| 最終ジャッジ日時 | 2026-03-11 09:39:52 |
| 合計ジャッジ時間 | 2,461 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 35 |
ソースコード
from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline
x = int(input())
if x>31:
print(0,0)
exit()
if x==0:
print(1,0)
exit()
s = math.comb(31,x)
t = math.comb(30,x-1)*((1<<31)-1)
print(s,t)