发表评论取消回复
相关阅读
相关 PAT(甲级)1069 The Black Hole of Numbers (20point(s))
题目题目链接思路如果n != 6174就一直迭代,迭代过程中把每个数拆分到一个数组中进行排序,二者做差,如果相等,提前结束迭代;否则继续迭代直到 n = 6174;注意,...
相关 PAT (Advanced Level) Practice 1117 Eddington Number (25分)
解题思路简单,哪怕暴力解都不会超时。但是有个坑,他自己题目没说清楚。 原题是:"Eddington number", E -- that is, the maximum i
相关 PAT (Advanced Level) Practice 1029 Median
输入不要用cin,用scanf,不然会超时。真的要吐血了,没想到是这个点...... 使用cin输入数据时最后一个测试点超时,使用scanf直接89ms过,题限是200ms
相关 PAT (Advanced Level) Practice 1053 Path of Equal Weight
建树建好后,使用DFS就能找到答案,另外题目要求结果路径的最后一个结点一定要是叶子结点,最后得到结果后,简单的排下序就行了。 include <iostream>
相关 PAT (Advanced Level) Practice 1069 The Black Hole of Numbers
include <iostream> include<stdio.h> include<algorithm> using namespace s
相关 【PAT (Advanced Level) Practice】1120 Friend Numbers (20 分)
1120 Friend Numbers (20 分) Two integers are called “friend numbers” if they share the
相关 【PAT (Advanced Level) Practice】PAT (Advanced Level) Practice
1006 Sign In and Sign Out (25 分) At the beginning of every day, the first person who s
相关 1069. The Black Hole of Numbers (20)
For any 4-digit integer except the ones with all the digits being the same, if we sort t
相关 (PAT 1069) The Black Hole of Numbers (简单数学)
For any 4-digit integer except the ones with all the digits being the same, if we sort t
相关 PAT (Advanced Level) Practice(更新中)
Source: > [PAT (Advanced Level) Practice][PAT _Advanced Level_ Practice] Reference:
还没有评论,来说两句吧...