Search found 4 matches

by farhan_iut
Sun Jan 23, 2011 8:09 pm
Forum: Volume 117 (11700-11799)
Topic: 11787 - Numeral Hieroglyphs
Replies: 6
Views: 3113

11787 - Numeral Hieroglyphs

This problem seems pretty easy.. i got corrrect output for several test cases bt cant find the problem.. plz some1 help.. here my code: #include<iostream> #include<algorithm> #include<cstring> #include<cstdlib> #include<cmath> #include<map> using namespace std; int main(){ map<char,int>mp,cp; char a...
by farhan_iut
Wed Jun 23, 2010 10:50 pm
Forum: Volume 101 (10100-10199)
Topic: 10100 - Longest Match
Replies: 95
Views: 21236

10100 - Longest Match... Why Runtime Error????

I m getting Runtime Error in this code.. Please anyone help... #include<stdio.h> #include<iostream> #include<algorithm> #include<string> #include<string.h> using namespace std; #define S 5000 int dp[1000][1000],la,lb; string sa[S],sb[S]; char a[10000],b[10000]; int max(int a,int b){ if(a>=b)return a...
by farhan_iut
Wed Nov 04, 2009 9:39 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 58754

Re: 10035 - Primary Arithmetic

i cant find any problm of my code bt it gives WA... it seems right.. plz help..

Code: Select all

Code deleted
by farhan_iut
Tue Jun 16, 2009 9:01 pm
Forum: Volume 113 (11300-11399)
Topic: 11369 - Shopaholic
Replies: 9
Views: 5761

Re: 11369 - Shopaholic

i hv solved the problem bt it shows "time limit exceed"... wht is the problm..? #include<stdio.h> int main(){ int a,b,c,d,e[20000],t,j,f; #ifndef ONLINE_JUDGE freopen("11369.txt","r",stdin); #endif while(scanf("%d",&a)==1){ for(f=0;f<a;f++){ scanf("%d",&b); for(c=0;c<b;c++) scanf("%d",&e[c]); for(c=...

Go to advanced search