meichuan
meichuan
全部文章
分类
题解(42)
归档
标签
去牛客网
登录
/
注册
meichuan的博客
全部文章
(共38篇)
题解 | #矩阵乘法#
感觉写的还不错 x = int(input()) y = int(input()) z = int(input()) A = [] B = [] for i in r...
Python3
2022-03-20
0
265
题解 | #成绩排序#
num = int(input()) isreverse = int(input()) student = [] for i in range(num): stu...
Python3
2022-03-20
0
325
题解 | #24点游戏算法#
时间有点长,但是效果还是不错的 import itertools while True: try: nums_list =...
Python3
2022-03-20
3
378
题解 | #计算日期到天数转换#
import datetime year,month,day = input().split(' ') day = datetime.datetime(int(year), int(month), int(day))&n...
Python3
2022-03-20
0
322
题解 | #百钱买百鸡问题#
num = input() price = [5,3,1/3] for i in range(21): for j in range(34): &nbs...
Python3
2022-03-20
0
259
题解 | #查找两个字符串a,b中的最长公共子串#
这次的代码感觉写的还不错 while 1: str1 = input() str2 = input()  ...
Python3
2022-03-20
3
274
题解 | #MP3光标位置#
自己写的辣鸡代码记录一下 song_list = list(range(1,int(input())+1)) order = input() cur = [1,[1,2,3,4]] def go(order): &...
Python3
2022-03-20
0
362
题解 | #DNA序列#
str1 = input() num = int(input()) max_str = [0,0] if len(str1)-num> 0: for i&n...
Python3
2022-03-20
0
343
题解 | #查找输入整数二进制中1的个数#
while True: try: num = int(input()) &nb...
Python3
2022-03-20
0
298
题解 | #找出字符串中第一个只出现一次的字符#
str1 = input() data = {} for i in str1: if str1.count(i) == 1: &...
Python3
2022-03-19
0
228
首页
上一页
1
2
3
4
下一页
末页