摘要: 这题其实和n没啥关系,我们多推导一下就会发现,第一项和第二项的最大公约数就是这题的解;证明的话....我不太会 #include <bits/stdc++.h> #define int long long const int maxn=1e5+50; const int INF=0x3f3f3f3f 阅读全文
posted @ 2020-05-17 11:19 小靖快去敲代码 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 看起来很高大上的题,其实就是判断这一堆数的奇偶是否一致 过于简单没有代码 阅读全文
posted @ 2020-05-14 16:01 小靖快去敲代码 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 题目意思就是经过无数次copy求最长上升子序列 总之就是他这一堆数中不同元素的个数 然后用一个map计数就好了 1 #include <bits/stdc++.h> 2 #define int long long 3 const int maxn=1e5+50; 4 const int INF=0x 阅读全文
posted @ 2020-05-14 15:26 小靖快去敲代码 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 洛谷友好的翻译了一下题目,给一个数求最大公因数和最小公倍数的和为原数 根据CF一般的套路,A题绝对是靠思维 我们知道1和任何数的GCD为1,1和任何数的LCM为任何数 1 cin>>n; 2 cout<<1<<" "<<n-1<<'\n'; 所以输入N输出1和n-1就好了 新get到了一个数论的知识 阅读全文
posted @ 2020-05-14 13:35 小靖快去敲代码 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 这题....我WA在没开longlong [手动微笑】 #include <bits/stdc++.h> const int maxn=2e5+50; const int INF=0x3f3f3f3f; using namespace std; long long a[maxn]={0}; int 阅读全文
posted @ 2020-05-10 21:45 小靖快去敲代码 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 被卡在A题....好丢人 我本来以为是一个有关奇偶的判断 然而是一个gcd问题 官方题解 1 #include <bits/stdc++.h> 2 const int maxn=1e5+50; 3 const int INF=0x3f3f3f3f; 4 using namespace std; 5 阅读全文
posted @ 2020-05-10 21:22 小靖快去敲代码 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-05-02 08:57 小靖快去敲代码 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 我居然10天都没有发博客,说明什么,说明我近10天都没有好好写题,(不知道什么时候开学感觉自己要废了) 阅读全文
posted @ 2020-04-28 17:06 小靖快去敲代码 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-04-18 10:16 小靖快去敲代码 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-04-12 09:24 小靖快去敲代码 阅读(207) 评论(0) 推荐(0) 编辑