chore: migrate

This commit is contained in:
2025-12-21 10:20:08 +07:00
parent 3e0dc3b68b
commit 30694c00fe
9 changed files with 47 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
a = int(input())
b = int(input())
print(a // b)
print(format(a / b, '.3f'))
+8
View File
@@ -0,0 +1,8 @@
def is_leap(year):
leap = False
if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0:
leap = True
return leap
year = int(input())
print(is_leap(year))
+1
View File
@@ -0,0 +1 @@
print("Hello World!")
+10
View File
@@ -0,0 +1,10 @@
n = int(input())
if n%2 != 0:
print("Weird")
else:
if n >= 2 and n <= 5:
print("Not Weird")
elif n >= 6 and n <=20:
print("Weird")
elif n > 20:
print("Not Weird")
+8
View File
@@ -0,0 +1,8 @@
a1,b1,c1,a2,b2,a3 = input().split()
a1 = float(a1)
b1 = float(b1)
c1 = float(c1)
a2 = float(a2)
b2 = float(b2)
a3 = float(a3)
print(((a1 + b1 + c1) + (a2 + b2) * 2 + a3 * 3) / 10)
+5
View File
@@ -0,0 +1,5 @@
a = int(input())
b = int(input())
print(a + b)
print(a - b)
print(a * b)
+5
View File
@@ -0,0 +1,5 @@
n = int(input())
for i in range(n):
for j in range(n):
print('*', end = ' ')
print()
+5
View File
@@ -0,0 +1,5 @@
sum = 0
n = int(input())
for i in range (1, n + 1):
sum += i
print(sum)
+1 -1
View File
@@ -1,2 +1,2 @@
# CodePower
An old project in 2020/05/29
An old project archived in 2020/05/29