09 2020 档案
摘要:翻日历即可,不需要想太复杂,第一次提交未考虑20世纪的答案了,87分,我服了 以下是100分代码 1 #include <set> 2 #include <cstdio> 3 #include <iostream> 4 using namespace std; 5 bool check(int ye
阅读全文
摘要:有一说一,check不好想 思路解析,from 这里 1 #include <set> 2 #include <cstdio> 3 #include <iostream> 4 using namespace std; 5 multiset<pair<int,int> >A; 6 const int
阅读全文
摘要:不知道区间更改怎么搞... 1 #include <cstdio> 2 #include <iostream> 3 using namespace std; 4 typedef long long ll; 5 const int MAXN=1e5+10; 6 struct node{ll sum,a
阅读全文
摘要:1 #include <cstdio> 2 #include <iostream> 3 using namespace std; 4 typedef long long ll; 5 const int MAXN=1e5+10; 6 struct node{ll sum,add;}t[MAXN<<2]
阅读全文
摘要:别想什么循环节优化了,模拟不香吗? 1 #include <iostream> 2 using namespace std; 3 int a,b,n; 4 int main() { 5 cin>>a>>b>>n,a=a%b; 6 for(int i=0;i<n+2;i++,a=a*10%b) 7 i
阅读全文
摘要:注意别把数组开小了! 1 #include <cstdio> 2 #include <iostream> 3 using namespace std; 4 const int maxn=1000000+10; 5 int fa[maxn],t[maxn],m,n,k,ans; 6 int find(
阅读全文