摘要: #include#include#includeusing namespace std;int n;struct Node{ int x,id;}p[100010];bool cmp(Node x,Node y){ return x.x> n; for(int i=1;i> p[i... 阅读全文
posted @ 2014-07-27 17:27 TK在颤抖 阅读(170) 评论(1) 推荐(1) 编辑
摘要: 签到题,今天就水了这么一道题,不好意思说了。。。#includeusing namespace std;int main(){ int a,b; cin >> a>> b; int c = a<b?a:b; if(c%2 == 0) cout<< "Malvika"<<... 阅读全文
posted @ 2014-07-27 15:42 TK在颤抖 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 并查集的水题,比赛时怎么都AC不了,后来发现是没有考虑先3 2 后1 2的情况,下次注意!#include#include#includeusing namespace std;int x[30010];int k[30010];int num[30010];int find(int y){ ... 阅读全文
posted @ 2014-07-27 15:38 TK在颤抖 阅读(118) 评论(0) 推荐(0) 编辑