Search found 5 matches
- Wed Sep 03, 2014 10:51 pm
- Forum: Volume 7 (700-799)
- Topic: 727 - Equation
- Replies: 156
- Views: 57121
Re: 727 - Equation
Thank you, i have forgotten to print a blank line
- Mon Sep 01, 2014 9:45 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11428 - Cubes
- Replies: 64
- Views: 27891
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 ...
#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 ...
- Sun Aug 24, 2014 10:52 pm
- Forum: Volume 4 (400-499)
- Topic: 483 - Word Scramble
- Replies: 122
- Views: 39167
Re: 483 - Word Scramble
thank you lighted . i can not do this type of error again.
- Sun Aug 24, 2014 10:14 pm
- Forum: Volume 7 (700-799)
- Topic: 727 - Equation
- Replies: 156
- Views: 57121
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 ...
here my code :
#include <iostream>
#include<cstdio>
#include <cstring>
#include <cstdlib>
#include <string>
#include <algorithm>
#include <stack>
using ...
- Sun Aug 17, 2014 8:25 pm
- Forum: Volume 4 (400-499)
- Topic: 483 - Word Scramble
- Replies: 122
- Views: 39167
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 ...
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 ...