摘要:
今天晚上是时候做做以前花30块钱买的模拟赛了; 部分题目答案以及个人代码如下: 1.直接算 2. #include<bits/stdc++.h>//蓝桥杯模拟赛 using namespace std; int sum; int lcm(int a,int b) { return a/__gcd(a 阅读全文
摘要:
题目链接:https://www.lanqiao.cn/problems/1452/learning/; 看题目数据10^18是很吓人的,我以为得用高精度..........; 不!实则不然!long long 就可以过 然后这个题就变成模拟了: #include<bits/stdc++.h> us 阅读全文
摘要:
题目链接:https://www.luogu.com.cn/problem/P1044 数论的应用,卡特尔数和组合数学的应用,算是纯数学题 代码及其注意事项如下: #include<bits/stdc++.h> using namespace std; int n; long long a[9000 阅读全文