摘要:
自测-1 打印沙漏 (20分) https://pintia.cn/problem-sets/17/problems/260 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <string> 5 us 阅读全文
摘要:
Codeforces Round #611 (Div. 3) 题意:给定的一维数组中,每i个元素为f(i),f(i)有两种取值,若f(i)为0,表示第i人不知道将礼物给谁,若f(i)>=1&&f(i)<=n表示第i人将礼物送给第f(i)人,要注意题目规定每个人只能收一件礼物也只能发一件礼物给别人,而 阅读全文
摘要:
Codeforces Round #610 (Div. 2) https://codeforces.com/problemset/problem/1282/B1 题意:购买商品简单版:Vasya想用钱买尽可能多的商品数,这里k为2,即允许任意买的两件商品中只为其中较贵的商品付款,而且这种机会在每种情 阅读全文
摘要:
Codeforces Round #607 (Div. 2) https://codeforces.com/problemset/problem/1281/B 题意:每个测试用例给定两个字符串chr1,chr2,若按字典序排序前者小于后者则直接输出chr1,否则对chr1字符数组最多交换一对字符,若 阅读全文
摘要:
1050 螺旋矩阵 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/994805275146436608 https://paste.ubuntu.com/p/Dn7fQ9Gf73/ #include <cstdio> 阅读全文
摘要:
1095 解码PAT准考证 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/1071786104348536832 题目大意:给出一组学生的准考证号和成绩,准考证号包含了等级(乙甲顶),考场号,日期,和个人编号信息,并 阅读全文
摘要:
1034 有理数四则运算 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805287624491008 本题代码: #include <iostream> #include <cmath> #include < 阅读全文
摘要:
1084 外观数列 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805260583813120 #include <iostream> #include <cstdio> #include <cmath> # 阅读全文
摘要:
1044 火星数字 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805279328157696 #include <iostream> #include <cstdio> #include <cstring> 阅读全文
摘要:
1020 月饼 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/994805301562163200 #include <iostream> #include <cstdio> #include <cstring> # 阅读全文