随笔分类 -  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... 阅读全文
posted @ 2018-03-05 21:14 ouyang_wsgwz 阅读(171) 评论(0) 推荐(0) 编辑
摘要: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 ... 阅读全文
posted @ 2018-03-05 20:59 ouyang_wsgwz 阅读(150) 评论(0) 推荐(0) 编辑
摘要: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 ... 阅读全文
posted @ 2018-03-05 20:47 ouyang_wsgwz 阅读(150) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2018-03-05 20:39 ouyang_wsgwz 阅读(377) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2018-03-05 20:28 ouyang_wsgwz 阅读(235) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2018-03-05 20:23 ouyang_wsgwz 阅读(345) 评论(0) 推荐(0) 编辑
摘要: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 =... 阅读全文
posted @ 2018-03-05 20:15 ouyang_wsgwz 阅读(147) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/264 阅读全文
posted @ 2018-01-16 22:28 ouyang_wsgwz 阅读(144) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/262 阅读全文
posted @ 2018-01-15 22:42 ouyang_wsgwz 阅读(460) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/261 阅读全文
posted @ 2018-01-15 17:35 ouyang_wsgwz 阅读(153) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/259 阅读全文
posted @ 2018-01-15 14:10 ouyang_wsgwz 阅读(225) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/258 阅读全文
posted @ 2018-01-12 22:24 ouyang_wsgwz 阅读(144) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/257 阅读全文
posted @ 2018-01-12 22:21 ouyang_wsgwz 阅读(167) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/256 阅读全文
posted @ 2018-01-09 21:32 ouyang_wsgwz 阅读(121) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/255 阅读全文
posted @ 2018-01-09 21:17 ouyang_wsgwz 阅读(141) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/254 阅读全文
posted @ 2018-01-06 14:07 ouyang_wsgwz 阅读(419) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/253 重点是在25位后进行补0 阅读全文
posted @ 2018-01-01 20:17 ouyang_wsgwz 阅读(200) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/252 阅读全文
posted @ 2018-01-01 18:35 ouyang_wsgwz 阅读(330) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/pat/2/problem/251 阅读全文
posted @ 2017-12-30 15:59 ouyang_wsgwz 阅读(110) 评论(0) 推荐(0) 编辑
摘要:题目:https://www.nowcoder.com/questionTerminal/0984adf1f55a4ba18dade28f1ab15003 阅读全文
posted @ 2017-12-30 15:43 ouyang_wsgwz 阅读(205) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
深色
回顶
展开