摘要: codeup 习题--图的遍历-- 凌宸1642 问题A : 第一题 题目描述 : ​ 该题的目的是要你统计图的连通分支数。 输入描述: ​ 每个输入文件包含若干行,每行两个整数 i , j ,表示节点 i 和 j 之间存在一条边。 输出描述 ​ 输出每个图的联通分支数。 样例输入: 1 4 4 3 阅读全文
posted @ 2021-04-11 20:50 凌宸1642 阅读(89) 评论(0) 推荐(0) 编辑
摘要: PAT (Advanced Level) Practice 1069 The Black Hole of Numbers (20 分) 凌宸1642 题目描述: For any 4-digit integer except the ones with all the digits being the 阅读全文
posted @ 2021-04-11 00:49 凌宸1642 阅读(52) 评论(0) 推荐(0) 编辑
摘要: PAT (Advanced Level) Practice 1065 A+B and C (64bit) (20 分) 凌宸1642 题目描述: Given three integers A, B and C in [−263 , 263], you are supposed to tell whe 阅读全文
posted @ 2021-04-11 00:48 凌宸1642 阅读(79) 评论(0) 推荐(0) 编辑