Created
March 13, 2018 23:22
-
-
Save dogac00/a9ce10b1900e8dbcfcc293d2311fcff8 to your computer and use it in GitHub Desktop.
Is my friend cheating on @codewars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def removNb(n): | |
result=[] | |
for a in range(1,n+1): | |
for b in range(1,n+1): | |
if(a*b==(n*(n+1)/2-a-b)): | |
result.append((a,b)) | |
return result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment