![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
LinesYoo
这个作者很懒,什么都没留下…
展开
-
codeforces 358
A. Dima and Continuous Line题意:按照顺序给出n个点,生成n-1条边判断是否有线段相交。思路:暴力n-1条线段判断是否相交。当思维题做了好久我好zz啊。。#includeusing namespace std;int l[1005],r[1005],x[1005];int main() { int n; scanf("%d",&n);原创 2016-12-10 20:27:49 · 357 阅读 · 0 评论 -
codeforces 357
D. Xenia and Hamming#includeusing namespace std;typedef long long ll;const int maxn=1000005;char a[maxn],b[maxn];ll cnt[maxn][30]={0};ll gcd(ll x, ll y) { return y==0?x:gcd(y,x%y);}i原创 2016-12-10 16:40:02 · 256 阅读 · 0 评论