摘要:
这题其实和n没啥关系,我们多推导一下就会发现,第一项和第二项的最大公约数就是这题的解;证明的话....我不太会 #include <bits/stdc++.h> #define int long long const int maxn=1e5+50; const int INF=0x3f3f3f3f 阅读全文
摘要:
题目意思就是经过无数次copy求最长上升子序列 总之就是他这一堆数中不同元素的个数 然后用一个map计数就好了 1 #include <bits/stdc++.h> 2 #define int long long 3 const int maxn=1e5+50; 4 const int INF=0x 阅读全文
摘要:
这题....我WA在没开longlong [手动微笑】 #include <bits/stdc++.h> const int maxn=2e5+50; const int INF=0x3f3f3f3f; using namespace std; long long a[maxn]={0}; int 阅读全文
摘要:
A. Phoenix and Balance time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Phoenix has nn co 阅读全文
摘要:
A. Ichihime and Triangle time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Ichihime is the 阅读全文
摘要:
F. Kate and imperfection time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Kate has a set S 阅读全文