wslcccc
wslcccc
全部文章
分类
归档
标签
去牛客网
登录
/
注册
wslcccc的博客
全部文章
(共28篇)
题解 | #计算两个矩阵的乘积#
while True: try: list2=[] list3=[] for i in range(2): list1=list(map(int,input().strip().split())) ...
2024-03-20
0
197
题解 | #约数的个数#
from math import sqrt from math import ceil while True: try: times=int(input()) list1=list(map(int,input().strip().split())) ...
2024-03-19
0
177
题解 | #素数#
import math def getprimenum(): list1=[] list1.append(1) list1.append(2) for i in range(2,100001): flag = 0 for j in r...
2024-03-18
0
179
题解 | #Prime Number#
import math def getprimenum(): list1=[] list1.append(1) list1.append(2) for i in range(2,100001): flag = 0 for j in r...
2024-03-18
0
178
题解 | #最简真分数#
def gcd(a,b): if b==0: return a else: return gcd(b,a%b) while True: try: times=int(input()) list1=list(map(int,input().st...
2024-03-18
0
181
题解 | #最简真分数#
def gcd(a,b): if b==0: return a else: return gcd(b,a%b) while True: try: times=int(input()) list1=list(map(int,input().st...
2024-03-18
0
196
题解 | #最大公约数#
def gcd(a,b): if(b!=0): return gcd(b,a%b) return a while True: try: a,b=map(int,input().strip().split()) print(gcd(a,b)...
2024-03-18
1
181
题解 | #字母统计#
a=list('A B C D E F G H I J K L M N O P Q R S T U V W X Y Z'.split()) dict1={} while True: for i in range(len(a)): dict1[a[i]]=0 try:...
2024-03-16
0
175
题解 | #统计字符#
while True: try: obj=input() tdata=input() for i in range(len(obj)): count=tdata.count(obj[i]) pri...
2024-03-16
0
156
题解 | #密码翻译#
while True: try: tdata=list(map(list,input().strip().split())) list1=[] for i in range(len(tdata)): for j in r...
2024-03-16
0
174
首页
上一页
1
2
3
下一页
末页