You are viewing a single comment's thread. Return to all comments →
Easy.
import math n,k=map(int,input().strip().split()) count=0 for i in range(1,n+1): for r in range(n): if math.comb(i,r)>k: count+=1 print(count)
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #53: Combinatoric selections
You are viewing a single comment's thread. Return to all comments →
Easy.