codeforces
LinesYoo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
codeforces 358
A. Dima and Continuous Line 题意:按照顺序给出n个点,生成n-1条边判断是否有线段相交。 思路:暴力n-1条线段判断是否相交。当思维题做了好久我好zz啊。。 #include using namespace std; int l[1005],r[1005],x[1005]; int main() { int n; scanf("%d",&n);原创 2016-12-10 20:27:49 · 407 阅读 · 0 评论 -
codeforces 357
D. Xenia and Hamming #include using 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 · 293 阅读 · 0 评论
分享