摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805288530460672 代码 测试点2考察第1行输入的空白字符串。题目保证第2行输入的文字串非空。,不保证第1行。 从别人哪里看的,太坑了。getline允许st 阅读全文
posted @ 2021-12-03 22:51 Infinite_V胜 阅读(32) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805289432236032 代码 注意只有一位参赛者的情况, 1 1 2 又因为其所代表的学校的编号(从1开始连续编号),所以令max=result[1] #incl 阅读全文
posted @ 2021-12-03 19:35 Infinite_V胜 阅读(22) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805290334011392 代码 #include <algorithm> #include <iostream> using namespace std; cons 阅读全文
posted @ 2021-12-03 12:40 Infinite_V胜 阅读(64) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805291311284224 测试点1 3 1 1 1 1 测试点3 1 1 1 加上这里的测试点介绍https://www.bilibili.com/read/cv1 阅读全文
posted @ 2021-12-02 16:02 Infinite_V胜 阅读(157) 评论(0) 推荐(0)
摘要: 原题 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胜 阅读(58) 评论(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胜 阅读(27) 评论(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胜 阅读(19) 评论(0) 推荐(0)
摘要: 原题 https://pintia.cn/problem-sets/994805260223102976/problems/994805268334886912 思路 也是参看的别人的代码。记录下三个要点。 1、输入的两个分数不是按大小排序,自已要判断一下 2、怎么判断分子和分母不能再约分? 这两个 阅读全文
posted @ 2021-11-29 18:35 Infinite_V胜 阅读(34) 评论(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胜 阅读(21) 评论(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胜 阅读(40) 评论(0) 推荐(0)