首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
u1f340
中国建设科技集团股份有限公司_工程师
获赞
1
粉丝
0
关注
2
看过 TA
14
男
The University of Sheffield
2022
前端工程师
IP属地:北京
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑u1f340吗?
发布(194)
u1f340
关注TA,不错过内容更新
关注
2024-01-18 22:15
中国建设科技集团股份有限公司_工程师
题解 | #密码验证合格程序#
def check(pw): # length check if len(pw) < 9: return False # type check typeA, typeB, typeC, typeD = 0, 0, 0, 0 flag = False for char in pw: if ord("a") <= ord(char) <= ord("z"): typeA = 1 elif ord("A") <= ord(char) <= ord("Z"): typeB = 1 elif o...
0
点赞
评论
收藏
分享
2024-01-18 21:44
中国建设科技集团股份有限公司_工程师
2024.01.18 在牛客打卡7天!
0
点赞
评论
收藏
分享
2024-01-18 21:38
中国建设科技集团股份有限公司_工程师
题解 | #简单错误记录#
ordered_names = [] count = {} while True: try: error_log = input().split("\\")[-1] data = error_log.split(" ")[0][-16:] + ' ' + error_log.split(" ")[1] if data not in ordered_names: ordered_names.append(data) count[data] = 1 else: count[data] += 1 except EOFError: break...
0
点赞
评论
收藏
分享
2024-01-18 13:52
中国建设科技集团股份有限公司_工程师
题解 | #坐标移动#
location = { "x" : 0, "y" : 0, } def move(v): if len(v) < 4 and len(v) > 1 and v[0] in ("W", "A", "S", "D") and str(v[1:]).isdigit(): if v[0] == "A": location["x"] -= int(v[1:]) if v[0] == "S": location[&...
0
点赞
评论
收藏
分享
2024-01-17 10:56
中国建设科技集团股份有限公司_工程师
题解 | #取近似值#
num = float(input()) if num % 1 >= 0.5: flag = 1 else: flag = 0 print(int(num) + flag)
0
点赞
评论
收藏
分享
2024-01-17 10:49
中国建设科技集团股份有限公司_工程师
题解 | #质数因子#
from math import isqrt num = int(input()) for i in range(2, isqrt(num) + 1): while num % i == 0: num //= i print(i, end=" ") if num > 2: print(num) # The most important thing is: # while should be inside the for loop, # (start from the smallest prime number, and check the modulus until ...
0
点赞
评论
收藏
分享
2024-01-17 10:44
中国建设科技集团股份有限公司_工程师
题解 | #质数因子#
from math import isqrt num = int(input()) for i in range(2, isqrt(num) + 1): while num % i == 0: num //= i print(i, end=" ") if num > 2: print(num)
0
点赞
评论
收藏
分享
2024-01-17 10:26
中国建设科技集团股份有限公司_工程师
2024.01.17 在牛客打卡6天!
0
点赞
评论
收藏
分享
2024-01-17 10:22
中国建设科技集团股份有限公司_工程师
题解 | #进制转换#
print(int(input(), 16))
0
点赞
评论
收藏
分享
2024-01-17 10:19
中国建设科技集团股份有限公司_工程师
题解 | #字符串分隔#
new_str = input() while len(new_str) > 8: print(new_str[:8]) new_str = new_str[8:] print(new_str + (8 - len(new_str)) * "0")
0
点赞
评论
收藏
分享
2024-01-17 09:59
中国建设科技集团股份有限公司_工程师
题解 | #二维数组中的查找#
# move the location from the top right or bottom left and move one step a time class Solution: def Find(self , target: int, array: List[List[int]]) -> bool: # write code here m = len(array) n = len(array[0]) irow, icol = 0, n - 1 while irow <= m - 1 and icol >= 0: cur_val = array[irow][icol...
0
点赞
评论
收藏
分享
2024-01-17 07:58
中国建设科技集团股份有限公司_工程师
题解 | #明明的随机数#
N = int(input()) nums = set() for i in range(N): nums.add(int(input())) for num in sorted(nums): print(num)
0
点赞
评论
收藏
分享
2024-01-16 21:49
中国建设科技集团股份有限公司_工程师
题解 | #单词造句#
res = "" while True: word = input() if word == "0": break elif not res: res += word else: res += " " + word print(res)
0
点赞
评论
收藏
分享
2024-01-16 21:00
中国建设科技集团股份有限公司_工程师
2024.01.16 在牛客打卡5天!
0
点赞
评论
收藏
分享
2024-01-16 21:00
中国建设科技集团股份有限公司_工程师
题解 | #查字典#
dict_1 = { "a": ["apple", "abandon", "ant"], "b": ["banana", "bee", "become"], "c": ["cat", "come"], "d": "down", } target = input() for word in dict_1[target]: print(wor...
0
点赞
评论
收藏
分享
1
8
9
10
11
12
13
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务