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 ...
Search found 4 matches
- Sun Jan 23, 2011 8:09 pm
- Forum: Volume 117 (11700-11799)
- Topic: 11787 - Numeral Hieroglyphs
- Replies: 6
- Views: 4789
- Wed Jun 23, 2010 10:50 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10100 - Longest Match
- Replies: 95
- Views: 34725
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 ...
#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 ...
- Wed Nov 04, 2009 9:39 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 101941
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
- Tue Jun 16, 2009 9:01 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11369 - Shopaholic
- Replies: 9
- Views: 7592
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 ...
#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 ...