add 张泽l1.

This commit is contained in:
licsber 2022-11-22 15:20:08 +08:00
parent 6b40f708b2
commit fe1a61e369
2 changed files with 43 additions and 0 deletions

24
ct/l1/星之卡比.py Normal file
View File

@ -0,0 +1,24 @@
import io
import sys
sys.stdin = io.StringIO('''4
5 5 5
1 2 40
10 5 41
7 2 42''')
# 80%
n = int(input())
flag = True
for _ in range(n):
chang, kuan, gao = map(int, input().split())
if gao >= 41:
continue
tiji = chang * kuan * gao
flag = False
print(tiji)
if flag:
print(0)

19
ct/l1/求阶乘位数.py Normal file
View File

@ -0,0 +1,19 @@
import io
import sys
sys.stdin = io.StringIO('''2
10
20''')
from math import pi, e, log10, ceil
m = int(input())
for _ in range(m):
num = int(input())
if num == 0 or num == 1:
print(1)
continue
digit = ceil(log10(float(2 * pi * num)) / 2 + num * log10(float(num / e)))
print(digit)