Sort by

recency

|

285 Discussions

|

  • + 0 comments
    (k//2) * ((k+1)//2)
    
  • + 0 comments
    def halloweenParty(k):
        return math.ceil(k/2)*(k-math.ceil(k/2))
    
  • + 0 comments

    Python

    def halloweenParty(k):
        return (k//2)*(k-k//2)
    
  • + 0 comments
    if k%2==0:
            return (k2//4)
    else: 
            return (k-1)*(k+1)//4
    
  • + 0 comments

    return math.floor(k/2)*math.ceil(k/2)