牛客534030675号
牛客534030675号
全部文章
分类
题解(8)
归档
标签
去牛客网
登录
/
注册
牛客534030675号的博客
全部文章
(共64篇)
题解 | #小球的距离#
# -*- coding:utf-8 -*- import sys def tofloat(l): for i in range(len(l)): l[i]=float(l[i]) return l class Balls: def s(self,n): ...
2023-04-13
0
305
题解 | #买苹果#
import sys data=int(sys.stdin.readline()) def love(max): for i in range(0,max+1): for j in range(0,max+1): if i*6+j*8==data: ...
2023-04-12
0
285
题解 | #末尾0的个数#
import sys n=int(sys.stdin.readline()) val=1 for i in range(1,n+1): val=val*i s=list(str(val)) length=len(s) # print(s) count=0 for i in range(...
2023-04-12
0
197
题解 | #奇数位丢弃#
import sys data=sys.stdin.readlines() meta=[] def r(l): global meta meta=[] if len(l)>1: for i in range(1,len(l),2): ...
2023-04-12
0
298
题解 | #序列找数#
import sys data = sys.stdin.readline().split(" ") n = int(data[0]) l = [] for i in range(1, len(data)): l.append(int(data[i])) l.sort() min=l[...
2023-04-07
0
220
题解 | #最大乘积#
import sys data= sys.stdin.readlines() l=data[1].split(" ") for i in range(len(l)): l[i]=int(l[i]) l.sort() fushu=[] zhengshu=[] for item in l: ...
2023-04-07
0
278
题解 | #简单密码#
import sys data=sys.stdin.readline() d={"1":1,"abc":2,"def":3,"ghi":4,"jkl":5,"mno":6,"pqrs":7,"tuv":8,"wxyz":9,"0":0} def trans(s): if s=="Z": ...
2023-03-29
0
205
题解 | #图片整理#
import sys line= sys.stdin.readline() line_list=list(line) line_list.remove("\n") line_list.sort() print("".join(line_list)) #非常简单的编程题
2023-03-22
0
189
题解 | #字符串反转#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in =...
2023-03-21
0
218
题解 | #完全数计算#
import sys def is_wqs(key): sum = 0 for i in range(1, key): if key % i == 0: sum = sum + i if sum==key: retu...
2023-03-20
0
202
首页
上一页
1
2
3
4
5
6
7
下一页
末页