摘要:
https://www.acwing.com/activity/content/code/content/3106996/ 题意就是把一个数变成a+b/c的形式(当然等式肯定是成立的),然后组成abc的数字由1~9分成,不能有重复和遗漏 #include<iostream> #include<alg 阅读全文
posted @ 2022-04-02 22:12
小志61314
阅读(281)
评论(0)
推荐(0)
摘要:
这个就要求没有重复的,可以按照字典序来输出,保证一定后面的数字比前面的数字要大,自然就没有重复的数字了,这个时候连判重也不需要了 https://www.acwing.com/activity/content/record/19/1/ #include<iostream> using namespa 阅读全文
posted @ 2022-04-02 13:23
小志61314
阅读(28)
评论(0)
推荐(0)
摘要:
题目详情 - L1-003 个位数统计 (15 分) (pintia.cn) 给你一个不超过1000位的数字,求每个数字有多少个 #include<iostream> using namespace std; struct js{ int s; }a[10]; int main(){ string 阅读全文
posted @ 2022-04-02 11:54
小志61314
阅读(68)
评论(0)
推荐(0)
摘要:
题目详情 - 7-12 分而治之 (25 分) (pintia.cn) 刚开始确实题目没读懂... 也就是那么多城市给你打,打完之后如果还有连通的城市就失败,否则成功 #include<iostream> #include<vector> #include<cstring> using namesp 阅读全文
posted @ 2022-04-02 10:37
小志61314
阅读(44)
评论(0)
推荐(0)
浙公网安备 33010602011771号