随笔分类 -  pat

pat甲级刷题代码
摘要:A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with 阅读全文
posted @ 2020-04-05 09:50 my日常work 阅读(382) 评论(0) 推荐(0) 编辑
摘要:这道题目给的输入数据 18条,如果没看懂题目意思,去把input数据关系图画出来再分析output,是非常麻烦的(我试过画出18组关系图,非常混乱),然后参考的别的大佬的代码。 其实这道题目的题目意思,在开头引言已经说明白了,题目意思大致如下: 如果一个人A,喜欢一个人D,A害羞不好意思直接和D说话 阅读全文
posted @ 2020-03-29 19:19 my日常work 阅读(563) 评论(0) 推荐(0) 编辑
摘要:免费chatgpt使用网址 http://ffff.chat:2023 在设置中设置userID 在网上看到各种将字符串转成int,和int转成字符串的方法。我自己比较喜欢用的方法是下面的,记住模板就行,最开始我也老是记不住,找到规律,多用几遍就好了。 1.将字符串转成int char s[20] 阅读全文
posted @ 2020-03-26 18:33 my日常work 阅读(8128) 评论(0) 推荐(0) 编辑
摘要:免费chatgpt使用网址 http://ffff.chat:2023 在设置中设置userID Formation is very important when taking a group photo. Given the rules of forming K rows with N peopl 阅读全文
posted @ 2020-03-06 15:11 my日常work 阅读(297) 评论(0) 推荐(0) 编辑
摘要:Given a tree, you are supposed to tell if it is a complete binary tree. Input Specification: Each input file contains one test case. For each case, th 阅读全文
posted @ 2020-03-05 20:21 my日常work 阅读(354) 评论(0) 推荐(0) 编辑
摘要:Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, 阅读全文
posted @ 2020-03-05 12:55 my日常work 阅读(207) 评论(0) 推荐(0) 编辑
摘要:Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same picture belong to the same tree. You are 阅读全文
posted @ 2020-03-04 13:43 my日常work 阅读(304) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示