Search found 8 matches

by jalil_cse
Thu Jan 08, 2015 10:16 am
Forum: Volume 117 (11700-11799)
Topic: 11753 - Creating Palindrome
Replies: 8
Views: 3899

Re: 11753 - Creating Palindrome

plz help me why runtime error #include<iostream> #include<stdio.h> #include<algorithm> #include<stdlib.h> #include<memory.h> using namespace std; int pal(int str[], int n) { int table[n][n], l, h, gap; memset(table, 0, sizeof(table)); for (gap = 1; gap < n; ++gap) for (l = 0, h = gap; h < n; ++l, ++...
by jalil_cse
Wed Jan 29, 2014 7:52 pm
Forum: Volume 113 (11300-11399)
Topic: 11352 - Crazy King
Replies: 32
Views: 11983

Re: 11352 - Crazy King

why wa please help me........

Code: Select all

thank you brianfry713
by jalil_cse
Fri Dec 20, 2013 9:22 pm
Forum: Volume 101 (10100-10199)
Topic: 10100 - Longest Match
Replies: 95
Views: 20707

Re: 10100 - Longest Match

why wa plz help me........

Code: Select all

thank you brianfry713
by jalil_cse
Tue Dec 03, 2013 9:43 pm
Forum: Volume 105 (10500-10599)
Topic: 10533 - Digit Primes
Replies: 108
Views: 31539

why wa.......plz help me.... #include<iostream> #include<stdio.h> #include<string.h> #include<stack> #include<stdlib.h> #include<math.h> #include<memory.h> #include<map> #include<set> #include<vector> #include<queue> #include<algorithm> #include<time.h> using namespace std; #define pi 2*acos(0.0) #d...
by jalil_cse
Sun Jun 30, 2013 8:30 pm
Forum: Volume 105 (10500-10599)
Topic: 10530 - Guessing Game
Replies: 57
Views: 27666

Re: 10530 - Guessing Game

I am getting wa.......please help me #include<iostream> #include<stdio.h> #include<string.h> using namespace std; int main() { int h=0,l=0,n,flag=0,flag1=0; char s[20]; while(scanf("%d",&n)==1) { if(n==0) break; getchar(); gets(s); if(strcmp(s,"too high")==0) { if(flag==0) { h=n; flag=1; } else if (...
by jalil_cse
Sun Jun 30, 2013 8:25 pm
Forum: Volume 116 (11600-11699)
Topic: 11661 - Burger Time?
Replies: 37
Views: 10602

Re: 11661 - Burger Time?

I am getting WA.......please help me

Code: Select all

// Code removed after AC!

by jalil_cse
Sat Feb 09, 2013 3:58 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 45546

Re: 673 Parentheses Balance - WA ?

WHY WA......... :roll: #include<stdio.h> #include<string.h> int main() { int te; scanf("%d",&te); getchar(); while(te--) { char s[200],t; int i,j,l,fc=0; gets(s); l=strlen(s); for(i=0;i<l-1;i++) { if((s[i]=='(' && s[i+1]==']')||(s[i]=='[' && s[i+1]==')')) { printf("No\n"); fc=1; break; } } if(fc==0)...
by jalil_cse
Tue Dec 25, 2012 12:40 pm
Forum: Volume 115 (11500-11599)
Topic: 11559 - Event Planning
Replies: 29
Views: 9280

Re: 11559 Event planning

Why wrong answer??? :cry: #include<stdio.h> #include<algorithm> using namespace std; int main() { long int n,b,h,be,price,bed[100000],i,j; long int c,totel[100000]; while( scanf("%ld %ld %ld %ld",&n,&b,&h,&be)==4) { c=0; for(i=0;i<h;i++) { scanf("%ld",&price); for(j=0;j<be;j++) { scanf("%ld",&bed[j]...

Go to advanced search