首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
哈哈~柳暗花明
获赞
201
粉丝
6
关注
1
看过 TA
5
男
华南理工大学
2017
C++
IP属地:未知
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑哈哈~柳暗花明吗?
发布(75)
评论
刷题
收藏
哈哈~柳暗花明
关注TA,不错过内容更新
关注
2020-05-06 16:56
华南理工大学 C++
判断字母_python3
while True: try: c = input() if str.isalpha(c): print('{} is an alphabet.'.format(c)) else: print('{} is not an alphabet.'.format(c)) except EOFError: break
0
点赞
评论
收藏
分享
2020-05-06 16:52
华南理工大学 C++
判断元音_python3
vowel_list = ['A', 'a', 'E', 'e', 'I', 'i', 'O', 'o', 'U', 'u'] while True: try: print('Vowel' if input() in vowel_list else 'Consonant') except EOFError: break
0
点赞
评论
收藏
分享
2020-05-06 16:36
华南理工大学 C++
竞选社长_python3
ll=list(input()) countA = ll.count('A') countB = ll.count('B') if countA == countB: print('E') elif countA > countB: print('A') else: print('B')
0
点赞
评论
收藏
分享
2020-05-06 15:35
华南理工大学 C++
变种水仙花_python3
ll = [] for num in range(10000, 99999): sum = 0 for j in range(1, 5): sum += int(str(num)[:j])*int(str(num)[j:]) if sum == num: ll.append(num) for i in ll: print(i, end=' ')
0
点赞
评论
收藏
分享
2020-05-06 15:15
已编辑
华南理工大学 C++
网购_python3
def discount(price, isDiscount): if isDiscount: price -= 50 return price if price > 0 else 0 while True: try: price, month, day, isDiscount = map(float, input().split()) result = price if month == 11 and day == 11: print('{:.2f}'.format(discount(result*0.7, isDiscount))) elif month == 12 and day ...
0
点赞
评论
收藏
分享
2020-05-06 14:41
华南理工大学 C++
健康评估_python3
def isNormal(weight, high): value = weight/(high**2) return True if value >= 18.5 and value <= 23.9 else False while True: try: weight, high = map(float, input().split()) print('Normal' if isNormal(weight, high) else 'Abnormal') except EOFError: break
0
点赞
评论
收藏
分享
2020-05-06 14:34
华南理工大学 C++
判断字母_python3
while True: try: c = input() print('YES' if str.isalpha(c) else 'NO') except EOFError: break
0
点赞
评论
收藏
分享
2020-05-06 11:28
华南理工大学 C++
计算三角形周长面积_python3
import math a, b, c = map(int, input().split()) p = a + b + c print('circumference={:.2f} area={:.2f}'.format(p, math.sqrt(p/2*(p/2-a)*(p/2-b)*(p/2-c))))
0
点赞
评论
收藏
分享
2020-05-06 11:12
华南理工大学 C++
平均成绩_python3
ll = list(map(float, input().split())) sum = 0.0 for i in ll: sum += i print('{:.2f} {:.2f}'.format(sum, sum/len(ll)))
0
点赞
评论
收藏
分享
2020-04-30 17:13
华南理工大学 C++
交换_python3
x, y = map(str, input().split(',')) xkey, xvalue = map(str, x.split('=')) ykey, yvalue = map(str, y.split('=')) print('{}={},{}={}'.format(xkey, yvalue, ykey, xvalue))
0
点赞
评论
收藏
分享
2020-04-30 16:58
华南理工大学 C++
金字塔_python3
c = input() for i in range(5): for j in range (i+5): if i + j > 3 and (i + j) % 2 == 0: print(c, end = '') else: print(' ', end = '') print()
0
点赞
评论
收藏
分享
2020-04-30 16:47
华南理工大学 C++
学生基本信息_python3
题目数据不严谨啊。。。 import math id, scoreList = map(str, input().split(';')) sl = list(map(float, scoreList.split(','))) print('The each subject score of No. {} is {:.2f}, {:.2f}, {:.2f}.'.format(id, \ math.ceil(sl[0]*100)/100, \ sl[1], \ sl[2])) #math.ceil(sl[1]*100)/100, \ #math.ceil(sl[2]*100)/100))
0
点赞
评论
收藏
分享
2020-04-30 14:18
华南理工大学 C++
小飞机_python3
for i in range(2): for j in range(7): if j>4: print('*', end='') else: print(' ', end='') print() for i in range(2): for j in range(12): print('*', end='') print() for i in range(2): for j in range(8): if j == 4 or j == 7: print('*', end='') else: print(' ', end='') print()
0
点赞
评论
收藏
分享
2020-04-30 11:42
已编辑
华南理工大学 C++
有容乃大_python3
感觉python3没法写啊,没这么多类型。。。 import sys sgs = sys.getsizeof ll = ['short', 'int', 'long', 'long long'] for x in ll: print('The size of {} is {} bytes.'.format(x, sgs(int())))坑爹啊,python3.5的编译器不保证有序。。。 table = {'short':2, 'int':4, 'long':8, 'long long':8} for typ,size in table.items(): print('The size of {...
溪云初起日沉阁:
table = {'short':2,'int':4,'long':8,'long long':8} for k,v in table.items(): print(f'The size of {k} is {v} bytes.')
0
点赞
评论
收藏
分享
2020-04-30 10:35
已编辑
华南理工大学 C++
我是大V_python3
for i in range(3): str = '' for j in range(5-i): if i == j or i + j == 4 : str += 'v' else : str += ' ' print(str)
0
点赞
评论
收藏
分享
1
2
3
4
5
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务