Skip to content

Commit bee6323

Browse files
authored
Add files via upload
1 parent ae0ec55 commit bee6323

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import math
2+
3+
def solution(left, right):
4+
answer = 0
5+
6+
for i in range(left, right+1) :
7+
if i % math.sqrt(i) == 0:
8+
answer -= i
9+
else:
10+
answer += i
11+
return answer

0 commit comments

Comments
 (0)