首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
洛枫、
华南理工大学
2022届
Java工程师
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(39)
赛马
0
排序后,前半部分总和小于后半部分,并且两边没有交集(即相同的数字,不然是平局),就行 import sys try: num = int(input()) while num: n = int(input()) arr = list(map(int...
发表于 2019-08-08 14:54:59
交易
0
总和能被5整除就行 import sys try: num = int(input()) while num: arr = list(map(int, sys.stdin.readline().strip().split(' '))) if sum...
发表于 2019-08-08 14:51:37
画板
0
算长X宽就好了 # coding:utf-8 import sys try: num = int(input()) while num: n = int(input()) sum = 0 while n: ...
发表于 2019-08-08 14:50:54
迷路的牛牛
0
Python cnt = int(input()) strings = input() L = strings.count('L') R = strings.count('R') cal = R - L cal = cal % 4 dir...
发表于 2019-08-03 18:01:57
被3整除
0
python while 1: try: lists = list(map(int, input().strip().split(' '))) l = lists[0] r = lists[1] cnt = 0 ...
发表于 2019-08-03 17:16:04
圈地运动
6
# 思路是n-1边的和大于最长边,就能组成封闭多边形; while 1: try: nums = int(input()) lists = list(map(int, input().strip().split(' '))) if nums &...
发表于 2019-08-03 16:52:47
数组中重复的数字
0
python,数组下标为哈希表的键,数组值为哈希表的值 class Solution: # 这里要特别注意~找到任意重复的一个值并赋值到duplication[0] # 函数返回True/False def duplicate(self, numbers, duplica...
发表于 2019-07-29 16:20:09
替换空格
0
python def replaceSpace(s): return s.replace(" ", "%20") C char* replaceSpace(char* string) { int space_cnt = 0; f...
发表于 2019-07-28 22:04:19
二维数组中的查找
0
逐行! def searchtarget(target, array): if len(array[0]) == 0: return False for i in range(len(array)): if array[i][0] <= tar...
发表于 2019-07-28 21:56:49
首页
上一页
1
2
3
4
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题