首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
Disconnect
重庆大学
2020届
Java工程师
挖掘机技术哪家强
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(214)
手串
9
n,m,c = map(int,input().split()) color = {} for i in range(n): zhu = list(map(int,input().split()[1:])) for j in zhu: if j not in colo...
发表于 2019-02-17 13:00:57
完成括号匹配
0
def process(x): tmp = [] for i in x: tmp.append(i) start = 0 while start<len(tmp)-1: if tmp==[]: break ...
发表于 2019-02-16 11:45:42
字符覆盖
0
s = input() t = input() s = list(s) t = list(t) t.sort() index = len(t)-1 while index>=0: tem = int(index) for i in range(len(s)): ...
发表于 2019-02-16 11:11:59
最大子序列
0
def find(x): o = 'a' for i in x: if i>o: o = i return o out = '' def outpu(y): global out if y=='': ...
发表于 2019-02-16 10:48:08
字母交换
3
def cal(p,m): dp = [[0 for i in range(len(p))] for j in range(len(p))] for i in range(0,len(p)-1): dp[i][i+1] = p[i+1]-p[i]-1 for ...
发表于 2019-02-16 10:25:40
素数对
0
def prime(x): i=3 while i*i<=x: if x%i==0: return False i+=1 return True pri = [2] for i in range(3,1001,2)...
发表于 2019-02-16 09:24:48
数列还原
0
def count(x): cnt = 0 for i in range(len(x)-1): for j in range(i+1,len(x)): if x[i]<x[j]: cnt+=1 re...
发表于 2019-02-16 09:13:25
连续最大和
0
def isz(x): for i in x: if i>0: return True return False def isf(x): for i in x: if i<0: ret...
发表于 2019-02-15 19:32:24
统计回文
0
def ishui(x): tmp = [] for i in x: tmp.append(i) tm = list(tmp) tmp.reverse() if tm==tmp: return True return F...
发表于 2019-02-15 18:44:55
解救小易
0
import sys n = input() n = int(n) x = list(map(int,input().split())) y = list(map(int,input().split())) mi = sys.maxsize for i in range(n): t = ab...
发表于 2019-02-15 18:36:06
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题