首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
Disconnect
重庆大学
2020届
Java工程师
挖掘机技术哪家强
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(214)
最长回文子串
0
def find(x,a,b,l): while a>=0 and b<len(x) and x[a]==x[b]: a-=1 b+=1 l+=2 return l try: while True: ...
发表于 2019-01-30 19:40:59
整数与IP地址间的转换
0
def addo(x): return "0"*(8-len(x[2:]))+x[2:] try: while True: ip = input().split('.') er = '' for i in ip: ...
发表于 2019-01-30 18:42:45
删除字符串中出现次数最少的字符
0
try: while True: s = input() d = {} mi = 1000000 for i in s: if i in d: d[i]+=1 ...
发表于 2019-01-30 18:24:51
自守数
0
def istr(x): y = x**2 x = str(x) y = str(y) lx,ly = [],[] for i in range(len(x)-1,-1,-1): lx.append(x[i]) for j in ran...
发表于 2019-01-29 21:04:14
字符串加解密
0
def add(x): o = '' for i in x: if i>='A' and i<'Z': o+=chr(ord(i)+1).lower() elif i=='Z': o+='a'...
发表于 2019-01-29 20:37:04
字符串排序
0
def isle(x): if (x>='A' and x<='Z') or (x>='a' and x<='z'): return True return False try: while True: l = [] ...
发表于 2019-01-29 19:57:16
汽水瓶
0
try: while True: n = input() n = int(n) cnt = 0 while n>=3: cnt+=n//3 n = n//3+n%3 ...
发表于 2019-01-29 19:19:23
求解立方根
0
n = input() n = float(n) print("%.1f"%pow(n,1/3))
发表于 2019-01-29 13:31:22
等差数列
0
try: while True: n = input() n = int(n) l = sorted(map(int,input().split())) if n==2: print('Possible'...
发表于 2019-01-29 13:16:32
石子合并
0
n = input() l = sorted(map(int,input().split())) score = 0 rock = l[-1] for i in range(len(l)-2,-1,-1): score+=rock*l[i] rock+=l[i] print(scor...
发表于 2019-01-29 13:07:56
首页
上一页
3
4
5
6
7
8
9
10
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题