摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805298269634560 代码 可能疏忽的地方。填入测试用例2 0 0 0 0 3 0 0 1 0 #include <iostream> #include <ve 阅读全文
posted @ 2021-11-25 13:37 Infinite_V胜 阅读(17) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805299301433344 代码 #include <iostream> #include <vector> using namespace std; // char 阅读全文
posted @ 2021-11-25 12:49 Infinite_V胜 阅读(14) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805300404535296 代码 #include <iostream> using namespace std; int result[10]={0};//存储0- 阅读全文
posted @ 2021-11-25 11:01 Infinite_V胜 阅读(16) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805270914383872 代码 #include <iostream> using namespace std; int main() { char c; int 阅读全文
posted @ 2021-11-25 00:09 Infinite_V胜 阅读(24) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805292322111488 代码 #include <iostream> #include <string.h> using namespace std; char 阅读全文
posted @ 2021-11-24 21:43 Infinite_V胜 阅读(20) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805284923359232 c代码 思路:类比现实中找零钱,按三个进制所在的位数相减,小了就向高位借1。值得注意的是后面的两位是P-A还是A-P,根据第一个Galle 阅读全文
posted @ 2021-11-23 20:19 Infinite_V胜 阅读(40) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805277163896832 代码 #include <iostream> #include <stdio.h> using namespace std; int te 阅读全文
posted @ 2021-11-23 18:01 Infinite_V胜 阅读(21) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/1038429385296453632 C++ 方向一: 转载参考 https://www.bilibili.com/read/cv11426576/ 其实还是没懂。若满足说谎 阅读全文
posted @ 2021-11-23 17:34 Infinite_V胜 阅读(111) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805262622244864 代码 #include <stdio.h> int main(void) { int num; scanf("%d", &num); ge 阅读全文
posted @ 2021-11-20 14:53 Infinite_V胜 阅读(46) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805260990660608 代码 今天正式用c来刷PAT了,java遭不住,同样的思路不用工具类,一个几百毫秒,一个几毫米。难搞难搞。 小结下,我用c与java的套路 阅读全文
posted @ 2021-11-19 20:17 Infinite_V胜 阅读(30) 评论(0) 推荐(0)