Search found 2 matches

by warheadshot
Tue Feb 07, 2012 10:36 am
Forum: Volume 101 (10100-10199)
Topic: 10191 - Longest Nap
Replies: 75
Views: 22994

Re: 10191 - Longest Nap

Hi, Why I get WA? Thx in advance. #include<iostream> #include<algorithm> #include<cstdio> using namespace std; char line[257]; int a[100],b[100];int pos=-1; int brek(int x){ int nn=0,n2=0;int pos1=-1; for(int i=0;i<=x;i++){ int mm=8000,m2=8000; for(int j=1;j<=x+1;j++){ if(a[j]-b[i]<0){continue;} m2=...
by warheadshot
Tue Feb 07, 2012 10:31 am
Forum: Volume 4 (400-499)
Topic: 482 - Permutation Arrays
Replies: 159
Views: 30993

Re: 482 Permutation Arrays

Hi, Why I got WA? Help D: #include<iostream> #include <cstring> #include<cstdio> using namespace std; char line [1000000]; int list1[50010];int list2[50010]; int cont; void saca_int(){ int aux=0;cont=0; for(int i=0;(size_t)(i)<=strlen(line);i++){ if(line[i]>='0'&&line[i]<='9'){ aux=aux*10+(line[i]-'...

Go to advanced search