11 2021 档案

摘要:原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805293282607104 思路 注意点: 1、闭区间,生日可以等于"1814/09/06"和"2014/09/06" 2、有效生日个数为0时,只输出0 思路: 1、 阅读全文
posted @ 2021-11-30 19:31 Infinite_V胜 阅读(73) 评论(0) 推荐(0)
摘要:原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805294251491328 代码 #include <iostream> #include <vector> using namespace std; vector< 阅读全文
posted @ 2021-11-30 12:09 Infinite_V胜 阅读(45) 评论(0) 推荐(0)
摘要:原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805295203598336 代码 #include <iostream> using namespace std; const int CLK_TCK=100; in 阅读全文
posted @ 2021-11-30 10:38 Infinite_V胜 阅读(45) 评论(0) 推荐(0)
摘要:原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805268334886912 思路 也是参看的别人的代码。记录下三个要点。 1、输入的两个分数不是按大小排序,自已要判断一下 2、怎么判断分子和分母不能再约分? 这两个 阅读全文
posted @ 2021-11-29 18:35 Infinite_V胜 阅读(52) 评论(0) 推荐(0)
摘要:原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805296180871168 代码 代码是看的别人的。https://www.cnblogs.com/siro/p/11129316.html 思路:用一个结构体数组来 阅读全文
posted @ 2021-11-29 12:30 Infinite_V胜 阅读(45) 评论(0) 推荐(0)
摘要:原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805297229447168 java代码 注意把scanner换成BufferedReader不会超时 import java.io.BufferedReader; 阅读全文
posted @ 2021-11-25 20:48 Infinite_V胜 阅读(70) 评论(0) 推荐(0)
摘要:原题 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胜 阅读(35) 评论(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胜 阅读(23) 评论(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胜 阅读(27) 评论(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胜 阅读(41) 评论(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胜 阅读(31) 评论(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胜 阅读(54) 评论(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胜 阅读(37) 评论(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胜 阅读(126) 评论(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胜 阅读(67) 评论(0) 推荐(0)
摘要:原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805260990660608 代码 今天正式用c来刷PAT了,java遭不住,同样的思路不用工具类,一个几百毫秒,一个几毫米。难搞难搞。 小结下,我用c与java的套路 阅读全文
posted @ 2021-11-19 20:17 Infinite_V胜 阅读(50) 评论(0) 推荐(0)
摘要:objdump介绍 objdump 有点像那个快速查看之类的工具,就是以一种可阅读的格式让你更多地了解二进制文件可能带有的附加信息。对于一般只想让自己程序跑起来的程序员,这个命令没有更多意义,对于想进一步了解系统的程序员,应该掌握这种工具。 objdump是gcc编译器下一款反汇编工具,能够反汇编目 阅读全文
posted @ 2021-11-13 21:46 Infinite_V胜 阅读(14549) 评论(0) 推荐(1)
摘要:原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805301562163200 代码 java代码超时,c代码通过(c解法点击跳转) 循环+每次把最大值遍历比较出来(较费时) import java.util.Scan 阅读全文
posted @ 2021-11-11 19:21 Infinite_V胜 阅读(88) 评论(0) 推荐(0)
摘要:原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805302786899968 代码 import java.util.Arrays; import java.util.Scanner; public class Ma 阅读全文
posted @ 2021-11-09 13:52 Infinite_V胜 阅读(59) 评论(0) 推荐(0)
摘要:原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805304020025344 Java代码 超时版 import java.util.Scanner; /* C 代表“锤子”、J 代表“剪刀”、B 代表“布” */ 阅读全文
posted @ 2021-11-08 11:56 Infinite_V胜 阅读(83) 评论(0) 推荐(0)