![](https://img-blog.csdnimg.cn/20190927151026427.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
contests
·O_0·
这个作者很懒,什么都没留下…
展开
-
2018 Multi-University Training Contest 6
1001 oval-and-rectangle 题解:2*b+a*Pi(手动死算),Pi的位数取多一点,注意输出答案的舍入操作 代码: #include<bits/stdc++.h> using namespace std; #define pai 3.14159265358979 int main(){ int T; cin>>T; w...原创 2018-08-10 15:16:59 · 143 阅读 · 0 评论 -
codeforces contest 630
题目连接:http://codeforces.com/contest/630 题解: A:输出25 B:对数,直接算 C: D: E:3 2 3 2 3的规律,先算出第一列有多少个点 a=(y2-y1)/2+1,算有多少行 b=(x2-x1+1),算出偶数行 c=b/2,ans=a*b-c; F: G: H: I:连续的n辆车有4种选法,此时剩下n-2个车位,考虑连续n...原创 2018-07-30 03:52:06 · 137 阅读 · 0 评论 -
codeforces gym 101350
题目链接:http://codeforces.com/gym/101350 C - Cheap Kangaroo 最大公因数(gcd) cin/cout会tle long long型输入输出用%ld会wa,要用%I64d #include<bits/stdc++.h> using namespace std; #define ll long long ll x[10...原创 2018-06-18 02:24:57 · 207 阅读 · 0 评论