哪里有字节跳动的笔试题啊,我想在整一遍。

字节跳动第一题:为啥我的只有20%???
#coding=utf-8 # 本题为考试多行输入输出规范示例,无需提交,不计分。 import sys if __name__ == "__main__": # 读取第一行的n  n = int(sys.stdin.readline().strip())
    datas = [] for i in range(n+2):
        line = sys.stdin.readline().strip()
        values = list(map(int, line.split()))
        datas.append(values)
    class_time_h = datas[-1][0]
    class_time_m = datas[-1][1]
    datas.pop(-1)
    need_time = datas[-1][0]
    datas.pop(-1)
    need_time_h = need_time // 60  need_time_m = need_time % 60  late_time_h = class_time_h - need_time_h
    late_time_m = class_time_m - need_time_m if late_time_m < 0:
        late_time_m += 60  late_time_h -= 1   for i in datas:
        cur_time_h = i[0]
        cur_time_m = i[1] if cur_time_h < late_time_h:
            times_h = cur_time_h
            times_m = cur_time_m elif cur_time_h == late_time_h and cur_time_m <= late_time_m:
            times_h = cur_time_h
            times_m = cur_time_m print(times_h, times_m)

#字节跳动##笔试题目#
全部评论
me too
点赞 回复 分享
发布于 2019-08-11 21:17

相关推荐

07-11 22:27
中南大学 Java
程序员牛肉:学历的话没问题。但是没问题的也就只有学历了。 其实你的整体架构是正确的,博客接着干。但是项目有点过于简单了。从后端的角度上讲,你这也就是刚入门的水平,所以肯定约面试够呛。 如果你要应聘后端岗位,那你第一个项目竟然是仿写操作系统。这个你要面试官咋问你。你一定要记住一点,你简历上写的所有的东西,都是为了证明你有能力胜任当前的岗位,而不是为了证明你自己会什么。 如果你只是浅浅的做几个项目,描述也都是烂大街。技术点也都是各种混水类的配置类需求,那你就不要幻想自己能走多远。一定要保持思考,保持学习。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务