
PAT
xiaocxks
no pains, no gains,微信号:chenxyu5,加微信,mobi文档等你来拿,不定期更新H5,单词,网络等方面的资料和技能分享
展开
-
PAT B1001
#include<iostream>#include<cstdio>using namespace std;int main() { int tem; int n, num = 0; scanf("%d",&n); while (n != 1) { if (n % 2 == 0) n = n / 2; else n =( 3 * ...原创 2019-04-20 17:03:14 · 262 阅读 · 0 评论 -
PAT B1032
总结1:使用const int maxn2:num[maxn]将下标与存储数据结合#include<iostream>#include<cstdio>using namespace std;const int maxn = 100010;int main() { int tem; int n, max = -1, maxi = 0, num[max...原创 2019-04-20 17:19:32 · 499 阅读 · 0 评论