Michael201909092305816
Michael201909092305816
全部文章
分类
题解(20)
归档
标签
去牛客网
登录
/
注册
Michael201909092305816的博客
全部文章
(共19篇)
题解 | #字符串加解密#
emmm, 好复杂的感觉 while True: try: s1 = input() s2 = input() s3 = '' s4 = '' for i in s1: ...
Python3
2022-06-07
0
149
题解 | #记负均正#
保留小数那里容易出问题,另外就是除以0的情况需要注意。 import sys n = int(input()) list1 = list(map(int, input().split())) pos = 0 count_pos = 0 count_neg = 0 for i in list1: ...
Python3
2022-05-25
0
154
题解 | #记票统计#
普通字典 import sys n=int(input()) name=input().split(' ') people=int(input()) vote=input().split(' ') illegal = 0 dic={} for i in name: dic[i] = 0 ...
Python3
2022-05-20
0
172
题解 | #密码强度等级#
Yes password = input() lens = len(password) alpha = 'abcdefghijklmnopqrstuvzxyz' alpha_upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' nums = '0123456789' sympol...
Python3
2022-05-20
0
208
题解 | #字符串字符匹配#
略复杂 import sys s=input() t=input() for i in s: if i not in t: print('false') sys.exit() print('true')
Python3
2022-05-19
0
171
题解 | #整型数组合并#
学会了map import sys n1=int(input()) list1=list(map(int,input().split(' '))) n2=int(input()) list2=list(map(int,input().split(' '))) list3 = list1 + li...
Python3
2022-05-19
1
170
题解 | #尼科彻斯定理#
找呀找规律 import sys m=int(input()) a= m*(m-1)+1 i=1 b='' while i < m: b+=str(a)+'+' a+=2 i+=1 b+=str(a) print(b)
Python3
2022-05-18
0
138
题解 | #计算日期到天数转换#
yes inport sys a=input().split(' ') year = int(a[0]) month = int(a[1]) day = int(a[2]) day1=0 def specialyear(n): if n%4 ==0 and n %100 !=0: ...
Python3
2022-05-18
0
166
题解 | #查找输入整数二进制中1的个数#
import sys while True: try: n=bin(int(input())) a=0 for i in n: if i=='1': a+=1 print...
Python3
2022-05-18
2
136
题解 | #查找组成一个偶数最接近的两个素数#
I can! import sys def prime(n): n=int(n) for i in range(2,n): if n % i == 0: return False return True n=int(input()) ...
Python3
2022-05-18
0
111
首页
上一页
1
2
下一页
末页