摘要: 水平有限,我只能尽我所能的简单讲一下一些经验以及如何将代码调试正确。 先求求大家不要PTA直接写代码,除非你很有把握,不然真的还是去编译器写完调试完样例测试无误后提交到PTA上。别再拿没有调试过的代码问我了,我遭不住,自己先调试。调试不对检查思路,最后再来问我。 首先讲一下我最近遇到的常见几种错误: 阅读全文
posted @ 2021-03-30 23:35 别问了我什么都不会 阅读(308) 评论(0) 推荐(1) 编辑
摘要: 作者 陈越 单位 浙江大学 作为一个城市的应急救援队伍的负责人,你有一张特殊的全国地图。在地图上显示有多个分散的城市和一些连接城市的快速道路。每个城市的救援队数量和每一条连接两个城市的快速道路长度都标在地图上。当其他城市有紧急求助电话给你的时候,你的任务是带领你的救援队尽快赶往事发地,同时,一路上召 阅读全文
posted @ 2023-04-13 19:52 别问了我什么都不会 阅读(44) 评论(0) 推荐(0) 编辑
摘要: ##知识点 1.Go是一个快速的、静态类型的编译型语言,感觉却像动态类型的解释型语言(所以还是编译型语言) 2.Less can be more(少即是多) 3.并发编程方面Golang使用一种称为goroutine的协程作为并发执行单元 4.协程又称微线程,比线程更轻量、开销更小,性能更高,一个线 阅读全文
posted @ 2023-02-08 20:51 别问了我什么都不会 阅读(20) 评论(0) 推荐(0) 编辑
摘要: #一、助教工作的具体职责和任务 1.对同学遇到的问题进行解答. 2.统计作业完成情况. 3.对作业进行批改评分. 5.负责各种事情统计,如作业完成情况,进群人员核对等. #二、助教工作的每周时长和具体安排 1.每周时间不定,看作业布置情况,批改一次作业大概2小时左右的时间. #三、因为自己的助教工作 阅读全文
posted @ 2022-07-11 11:14 别问了我什么都不会 阅读(84) 评论(0) 推荐(0) 编辑
摘要: ##1108 Finding Average (20 分) The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicat 阅读全文
posted @ 2022-03-03 17:19 别问了我什么都不会 阅读(21) 评论(0) 推荐(0) 编辑
摘要: ##1107 Social Clusters (30 分) When register on a social network, you are always asked to specify your hobbies in order to find some potential friends 阅读全文
posted @ 2022-03-03 15:54 别问了我什么都不会 阅读(18) 评论(0) 推荐(0) 编辑
摘要: ##1105 Spiral Matrix (25 分) This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral mat 阅读全文
posted @ 2022-03-03 13:54 别问了我什么都不会 阅读(22) 评论(0) 推荐(0) 编辑
摘要: ##1102 Invert a Binary Tree (25 分) The following is from Max Howell @twitter: Google: 90% of our engineers use the software you wrote (Homebrew), but 阅读全文
posted @ 2022-03-03 03:29 别问了我什么都不会 阅读(20) 评论(0) 推荐(0) 编辑
摘要: ##1167 Cartesian Tree (30 分) A Cartesian tree is a binary tree constructed from a sequence of distinct numbers. The tree is heap-ordered, and an inord 阅读全文
posted @ 2022-03-03 01:45 别问了我什么都不会 阅读(49) 评论(0) 推荐(0) 编辑
摘要: ##1166 Summit (25 分) A summit (峰会) is a meeting of heads of state or government. Arranging the rest areas for the summit is not a simple job. The idea 阅读全文
posted @ 2022-02-23 02:14 别问了我什么都不会 阅读(115) 评论(0) 推荐(0) 编辑
摘要: ###1165 Block Reversing (25 分) Given a singly linked list L. Let us consider every K nodes as a block (if there are less than K nodes at the end of th 阅读全文
posted @ 2022-02-22 16:46 别问了我什么都不会 阅读(74) 评论(0) 推荐(0) 编辑