Language: C++

#
# 　　  ⋀_⋀　 
#　　  (･ω･)  
# .／ Ｕ ∽ Ｕ＼
#  │＊　合　＊│
#  │＊　格　＊│ 
#  │＊　祈　＊│ 
#  │＊　願　＊│ 
#  │＊　　　＊│ 
#      ￣
#
import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,sqrt,factorial,hypot,log #log2ないｙｐ
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
from fractions import gcd
from random import randint
def ceil(a,b): return (a+b-1)//b
inf=float('inf')
mod = 10**9+7
def pprint(*A): 
    for a in A:     print(*a,sep='\n')
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
#mint
class ModInt:
    def __init__(self, x):
        self.x = x % mod
    
    def __str__(self):
        return str(self.x)
    
    __repr__ = __str__

    def __add__(self, other):
        if isinstance(other, ModInt):
            return ModInt(self.x + other.x)
        else:
            return ModInt(self.x + other)

    __radd__ = __add__
        
    def __sub__(self, other):
        if isinstance(other, ModInt):
            return ModInt(self.x - other.x)
        else:
            return ModInt(self.x - other)

    def __rsub__(self, other):
        if isinstance(other, ModInt):
            return ModInt(other.x - self.x)
        else:
            return ModInt(other - self.x)

    def __mul__(self, other):
        if isinstance(other, ModInt):
            return ModInt(self.x * other.x)
        else:
            return ModInt(self.x * other)

    __rmul__ = __mul__

    def __truediv__(self, other):
        if isinstance(other, ModInt):
            return ModInt(self.x * pow(other.x, mod-2,mod))
        else:
            return ModInt(self.x * pow(other, mod - 2, mod))
            
    def __rtruediv(self, other):
        if isinstance(other, self):
            return ModInt(other * pow(self.x, mod - 2, mod))
        else:
            return ModInt(other.x * pow(self.x, mod - 2, mod))
            

    def __pow__(self, other):
        if isinstance(other, ModInt):
            return ModInt(pow(self.x, other.x, mod))
        else:
            return ModInt(pow(self.x, other, mod))
            

    def __rpow__(self, other):
        if isinstance(other, ModInt):
            return ModInt(pow(other.x, self.x, mod))
        else:
            return ModInt(pow(other, self.x, mod))


class BigCombination(object):

    def __init__(self, mod: int=10**9+7, max_n: int=10**6):
        fac, inv=[1], []
        fac_append, inv_append=fac.append, inv.append

        for i in range(1, max_n+1):
            fac_append(fac[-1] * i % mod)

        inv_append(pow(fac[-1], mod-2, mod))

        for i in range(max_n, 0, -1):
            inv_append(inv[-1] * i % mod)

        self.mod, self.factorial, self.inverse=mod, fac, inv[::-1]

    def get_combination(self, n, r):
        if n < r:
            return 0
        return self.factorial[n] * self.inverse[r] * self.inverse[n-r] % self.mod

    def get_permutation(self, n, r):
        if n < r:
            return 0
        return self.factorial[n] * self.inverse[n-r] % self.mod

def main():
    B = BigCombination()
    N,K=MI()
    ans = B.get_combination(N+N-1,N)
    if K>=N-1: #どの組み合わせも再現出来る
        print(ans)
        return
    print(ans)
    #K+1部屋以上に人がいないようなものは出来ない
    C = B.get_combination(N,K+1)
    people = N
    room = N-(K+1)
    ans -= C*B.get_combination(people+room-1, people)

    print(ans)
if __name__ == '__main__':
    main()

Compiler output:
a.cc:2:3: error: extended character 　 is not valid in an identifier
    2 | # 　　  ⋀_⋀　
      |   ^
a.cc:2:3: error: extended character 　 is not valid in an identifier
a.cc:2:3: error: invalid preprocessing directive #\U00003000\U00003000
    2 | # 　　  ⋀_⋀　
      |   ^~~~
a.cc:2:9: error: extended character ⋀ is not valid in an identifier
    2 | # 　　  ⋀_⋀　
      |         ^
a.cc:2:9: error: extended character ⋀ is not valid in an identifier
a.cc:2:9: error: extended character 　 is not valid in an identifier
a.cc:3:2: error: extended character 　 is not valid in an identifier
    3 | #　　  (･ω･)
      |  ^
a.cc:3:2: error: extended character 　 is not valid in an identifier
a.cc:3:2: error: invalid preprocessing directive #\U00003000\U00003000
    3 | #　　  (･ω･)
      |  ^~~~
a.cc:4:3: error: invalid preprocessing directive #.
    4 | # .／ Ｕ ∽ Ｕ＼
      |   ^
a.cc:4:10: error: extended character ∽ is not valid in an identifier
    4 | # .／ Ｕ ∽ Ｕ＼
      |          ^
a.cc:5:4: error: extended character │ is not valid in an identifier
    5 | #  │＊　合　＊│
      |    ^
a.cc:5:4: error: extended character 　 is not valid in an identifier
a.cc:5:4: error: extended character 　 is not valid in an identifier
a.cc:5:4: error: extended character │ is not valid in an identifier
a.cc:5:4: error: invalid preprocessing directive #\U00002502\U0000ff0a\U00003000\U00005408\U00003000\U0000ff0a\U00002502
    5 | #  │＊　合　＊│
      |    ^~~~~~~~~~~~
a.cc:6:4: error: extended character │ is not valid in an identifier
    6 | #  │＊　格　＊│
      |    ^
a.cc:6:4: error: extended character 　 is not valid in an identifier
a.cc:6:4: error: extended character 　 is not valid in an identifier
a.cc:6:4: error: extended character │ is not valid in an identifier
a.cc:6:4: error: invalid preprocessing directive #\U00002502\U0000ff0a\U00003000\U0000683c\U00003000\U0000ff0a\U00002502
    6 | #  │＊　格　＊│
      |    ^~~~~~~~~~~~
a.cc:7:4: error: extended character │ is not valid in an identifier
    7 | #  │＊　祈　＊│
      |    ^
a.cc:7:4: error: extended character 　 is not valid in an identifier
a.cc:7:4: error: extended character 　 is not valid in an identifier
a.cc:7:4: error: extended character │ is not valid in an identifier
a.cc:7:4: error: invalid preprocessing directive #\U00002502\U0000ff0a\U00003000\U00007948\U00003000\U0000ff0a\U00002502
    7 | #  │＊　祈　＊│
      |    ^~~~~~~~~~~~
a.cc:8:4: error: extended character │ is not valid in an identifier
    8 | #  │＊　願　＊│
      |    ^
a.cc:8:4: error: extended character 　 is not valid in an identifier
a.cc:8:4: error: extended character 　 is not valid in an identifier
a.cc:8:4: error: extended character │ is not valid in an identifier
a.cc:8:4: error: invalid preprocessing directive #\U00002502\U0000ff0a\U00003000\U00009858\U00003000\U0000ff0a\U00002502
    8 | #  │＊　願　＊│
      |    ^~~~~~~~~~~~
a.cc:9:4: error: extended character │ is not valid in an identifier
    9 | #  │＊　　　＊│
      |    ^
a.cc:9:4: error: extended character 　 is not valid in an identifier
a.cc:9:4: error: extended character 　 is not valid in an identifier
a.cc:9:4: error: extended character 　 is not valid in an identifier
a.cc:9:4: error: extended character │ is not valid in an identifier
a.cc:9:4: error: invalid preprocessing directive #\U00002502\U0000ff0a\U00003000\U00003000\U00003000\U0000ff0a\U00002502
    9 | #  │＊　　　＊│
      |    ^~~~~~~~~~~~
a.cc:10:8: error: invalid preprocessing directive #\U0000ffe3
   10 | #      ￣
      |        ^~
a.cc:15:49: error: stray '#' in program
   15 | from math import floor,sqrt,factorial,hypot,log #log2ないｙｐ
      |                                                 ^
a.cc:24:11: warning: multi-character character constant [-Wmultichar]
   24 | inf=float('inf')
      |           ^~~~~
a.cc:41:40: error: empty character constant
   41 | def ST(): return input().replace('\n', '')
      |                                        ^~
a.cc:42:2: error: invalid preprocessing directive #mint
   42 | #mint
      |  ^~~~
a.cc:137:16: error: stray '#' in program
  137 |     if K>=N-1: #どの組み合わせも再現出来る
      |                ^
a.cc:141:6: error: invalid preprocessing directive #K
  141 |     #K+1部屋以上に人がいないようなものは出来ない
      |      ^
a.cc:148:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
  148 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:12:1: error: 'import' does not name a type
   12 | import sys
      | ^~~~~~
a.cc:12:1: note: C++20 'import' only available with '-fmodules-ts'