http://www.codeforces.com/problemset/problem/165/E蛮巧妙的,关键是以前做的少,mark一下View Code #include<cstdio>#include<cstring>int f[5000010],a[1000010];int main(){ int n,i,j,k; scanf("%d",&n); memset(f,0,sizeof(f)); for(i=1;i<=n;i++) { scanf("%d",... Read More
posted @ 2012-03-18 01:06 Because Of You Views(395) Comments(0) Diggs(0) Edit