We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b061d0 commit 5e66e2dCopy full SHA for 5e66e2d
1068. Sum.py
@@ -0,0 +1,9 @@
1
+n = int(input())
2
+if n <= 0:
3
+ n = -n
4
+ sm = n*(n+1) // 2
5
+ sm = -sm + 1
6
+ print(sm)
7
+else:
8
9
Conditional Statements.py
@@ -99,6 +99,19 @@
99
'''
100
101
102
+
103
+########## Leaf Year
104
+year = int(input())
105
106
+if( year%400 == 0 or (year%100 != 0 and year%4 == 0) ):
107
+ print('%d is leaf year.' % year)
108
109
+ print('%d is not leaf year.' % year)
110
111
112
113
114
115
116
** You are now able to solve following online-judge problems.
117
------------------------------------------------------------
0 commit comments