View Code #include<stdio.h>#include<string.h>#include<algorithm>using namespace std;struct node{ int l, r;}p[303];bool vis[303];int n;bool cmp(node a, node b){ return a.r < b.r || a.r == b.r && a.l > b.l;}int main(){ int i, j, k; int ll, rr; while( ~scanf("%d&quo Read More
posted @ 2012-09-16 10:22
To be an ACMan
Views(176)
Comments(0)
Diggs(0)
模拟题,每个字母代表一个数字,最多有五个字母,然后搜索一下即可。View Code #include<stdio.h>#include<string.h>#include<map>#include<algorithm>using namespace std;char s1[12], s2[12], s3[12];int a, b, c;int len1, len2, len3;int ans, num;bool vis[12];map<char, int> mm; // 表示映射,int表示 字母char是第几个加入map里面的,从1 Read More
posted @ 2012-09-16 10:18
To be an ACMan
Views(212)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号