liuchuo / PAT

🍭 浙江大学PAT题解(C/C++/Java/Python) - 努力成为萌萌的程序媛~
3.37k stars 824 forks source link

[Advanced/C++/1103]代码执行结果与样本输出结果不同,但是能够AC #151

Open RonnieHu opened 4 years ago

RonnieHu commented 4 years ago

Sample Input : 169 5 2 Your Output : 169 = 7^2 + 6^2 + 6^2 + 5^2 + 5^2 学姐有时间地话可以看下这道题,很经典的DFS深搜求解,但是学姐你的输出结果和Sample Output不一样,很遗憾地是我没能找到为什么输出结果不一样还是能AC。