melon.
melon.
全部文章
分类
归档
标签
去牛客网
登录
/
注册
melon.的博客
全部文章
(共117篇)
题解 | #牛牛的素数和#
def f(n): global i,lst if i % n == 0: lst.append(n) if n == 1: return return f(n - 1) l,j = map(int,input().split()) ...
2022-12-25
1
308
题解 | #牛牛的短信#
msg_num = int(input()) word_num = map(int,input().split()) cost = 0 for i in word_num: price = 0.1 if i > 60: price = 0.2 cos...
2022-12-25
1
274
题解 | #[NOIP2010]数字统计#
L,R = map(int,input().split()) sum = 0 for i in range(L,R + 1): count = str(i).count('2') sum += count print(sum) [宝宝生气了][宝宝生气了]
2022-12-24
1
301
题解 | #[NOIP2010]数字统计#
我太无聊了系统最多只能递龟997遍def f(l,r,sum = 0): count = str(l).count('2') sum += ...
2022-12-24
1
327
题解 | The Biggest Water Problem
def f(n): sum = 0 for i in str(n): sum += int(i) if 0 < n < 10: return n return f(sum) n = int(input()) print(...
2022-12-24
1
354
题解 | #数位五五#
def f(a,b): count = 0 for i in range(a,b + 1): num = 0 for j in str(i): num += int(j) if num % 5 == 0: ...
2022-12-24
1
381
题解 | #小乐乐计算函数#
def f(a,b,c): if a > b: max = a else: max = b if max < c: max = c return max nums = input() lst ...
2022-12-24
1
242
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页