随笔分类 - PAT乙级练习题(Nowcoder)
摘要:1 #include 2 #include 3 using namespace std; 4 5 int main(){ 6 long long n; 7 while (cin >> n){ 8 if (n == 0) 9 break; 10 if (n == 1){ 11 c...
阅读全文
摘要:1 #include 2 #include 3 #include 4 using namespace std; 5 //错排问题,直接用公式 6 //(n-1)*(f(n-1) + f(n-2)) 7 8 double f(int n){ 9 if (n == 1) 10 return 0; 11 if (n == 2) 12 ...
阅读全文
摘要:1 #include 2 #include 3 using namespace std; 4 //错排问题,直接用公式 5 //(n-1)*(f(n-1) + f(n-2)) 6 7 long long f(int n){ 8 if (n == 1) 9 return 0; 10 if (n == 2) 11 return ...
阅读全文
摘要:1 #include 2 bool huiwen(char a[], int n){ 3 4 int i, j; 5 i = 0; j = n - 1; 6 7 while (i = 10){ 32 buffer[counter] = temp - 10 + 'A'; 33 } 3...
阅读全文
摘要:1 #include 2 #include 3 using namespace std; 4 const int maxn = 10005; 5 char biao[] = "0123456789ABCDEF"; 6 int main(){ 7 int a, b; 8 char s[maxn]; 9 int len; 10 while (ci...
阅读全文
摘要:1 #include 2 #include 3 using namespace std; 4 const int maxn = 10005; 5 char biao[] = "0123456789ABCDEF"; 6 int main(){ 7 int a, b; 8 char s[maxn]; 9 int len; 10 while (ci...
阅读全文
摘要:1 #include 2 #include 3 #include 4 using namespace std; 5 6 typedef long long LL; 7 8 int main(){ 9 10 LL a, b; 11 while (cin >> a >> b){ 12 int t; 13 int ans =...
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/264
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/262
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/261
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/259
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/258
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/257
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/256
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/255
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/254
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/253 重点是在25位后进行补0
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/252
阅读全文
摘要:题目:https://www.nowcoder.com/pat/2/problem/251
阅读全文
摘要:题目:https://www.nowcoder.com/questionTerminal/0984adf1f55a4ba18dade28f1ab15003
阅读全文