1.小平方 代码
n int(input())
count0
def f(x)->bool: # 判断条件return True if x**2%n<n/2 else False
for i in range(1,n): # 遍历[1,n-1],符合题意计数加一if f(i):count1
print(count)2.3的倍数 代码
a int(input())
b int(input())
c int(input…
题目描述
leetcode题目:1633. 各赛事的用户注册率 Code
select contest_id, round(count(*)/(select count(*) from Users)*100, 2) as percentage
from Register
group by contest_id
order by percentage desc, contest_id ascCOUNT()函数
COUNT函数用法&#…