Search found 5 matches

by shaficse
Wed Sep 03, 2014 10:51 pm
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 34779

Re: 727 - Equation

Thank you, i have forgotten to print a blank line
by shaficse
Mon Sep 01, 2014 9:45 pm
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 17301

Re: 11428 - Cubes

i am getting WA but i got accurate answer using http://www.udebug.com/UVa/11428 output: #include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { int num; int arr[100]; int a,b; // freopen("text.txt","r",stdin); while(scanf("%d",&num)==1) { if(num==0) break; int flag=0...
by shaficse
Sun Aug 24, 2014 10:52 pm
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 19971

Re: 483 - Word Scramble

thank you lighted . i can not do this type of error again.
by shaficse
Sun Aug 24, 2014 10:14 pm
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 34779

Re: 727 - Equation

I am getting wrong answer though i have gotten equivalent postfix expression. may be i am not printing a blank line properly. pls help me . here my code : #include <iostream> #include<cstdio> #include <cstring> #include <cstdlib> #include <string> #include <algorithm> #include <stack> using namespac...
by shaficse
Sun Aug 17, 2014 8:25 pm
Forum: Volume 4 (400-499)
Topic: 483 - Word Scramble
Replies: 122
Views: 19971

Re: Getting WA with 483 Word Scramble

I am getting presentation error . Please someone help me? #include <iostream> #include <cstdio> #include <cstring> using namespace std; void reverse_string(char* pch) { int len=strlen(pch); char temp; for(int i=0;i<len/2;i++) { temp=pch ; pch =pch[len-i-1]; pch[len-i-1]=temp; } printf("%s ",pch); } ...

Go to advanced search