秋天的夜
秋天的夜
全部文章
题解
归档
标签
去牛客网
登录
/
注册
秋天的夜的博客
全部文章
/ 题解
(共14篇)
题解 | #牛牛的素数和#
import math def judge(n): if n==1: return True else: for i in rang...
Python3
2022-03-15
0
375
题解 | #牛牛的短信#
def judge(n): if n<=60: return 0.1 else: return 0.2 n=int(input...
Python3
2022-03-15
1
447
题解 | #[NOIP2010]数字统计#
m,n=map(int,input().split()) str1='' count=0 for i in range(m,n+1): str1=str1+str(i) count=str1.count('2') print(count)
Python3
2022-03-15
0
454
题解 | #The Biggest Water Problem#
def judge(n): if n < 10: print(n) else: sum = 0 &...
Python3
2022-03-15
0
439
题解 | #序列中删除指定数字#
n=int(input()) list1=list(map(int,input().split(' '))) x=int(input()) while list1.count(x): list1.remove(x) print(*list1)
Python3
2022-03-13
0
294
题解 | #魔法数字变换#
n=int(input()) count=0 while n!=1: if n%2==0: n=n/2 count+=1 else:...
Python3
2022-03-13
0
320
题解 | #数位之和#
n=int(input()) str1=str(n) sum=0 for i in str1: sum+=int(i) print(sum) #在这里,我们可以用字符串来一位一位的取,这是一个技巧, 把一个整数变成一个字符串后,就直接一位一位的取每位的数字
Python3
2022-03-13
3
544
题解 | #包含数字9的数#
count=0 for i in range(1,2020): str1=str(i) if '9'in str1: count += 1 print(count)
Python3
2022-03-13
0
398
题解 | #公务员面试#
def grade(list1): a=max(list1) b=min(list1) list1.remove(a) list1.remove(b) sum=...
Python3
2022-03-13
0
346
题解 | #牛牛的金币#
def change(n): str1=str(n) str2='' i=len(str1)-1 while i>=0: st...
Python3
2022-03-13
0
445
首页
上一页
1
2
下一页
末页