Search found 19 matches

by sonjbond
Fri Dec 13, 2013 2:44 am
Forum: Volume 9 (900-999)
Topic: 928 - Eternal Truths
Replies: 11
Views: 6574

Re: 928 - Eternal Truths WA

why I am getting WA in this simple problem ? Anyone help me
My Code :

#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <string.h>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include ...
by sonjbond
Tue Feb 12, 2013 10:35 pm
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 44322

Why Wa?? 497 Strategic Defense Initiative

My Code is giving me correct Output for sample Input & some other input from this forum .............. But I am getting WA ... Plz help me out ...........

My Code is here:
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include ...
by sonjbond
Wed Feb 06, 2013 3:16 pm
Forum: Volume 104 (10400-10499)
Topic: 10494 - If We Were a Child Again
Replies: 55
Views: 25856

Why WA ? 10494

my I/O is seems to correct ... but I m getting WA ... I cant find my wrong ......
plz help me ..... here's my Code :
#include<stdio.h> /*10494*/
#include<string.h>
char num[100000000];
int ans[100000000];
int main()
{
unsigned long long n;
char sign;
while(scanf("%s %c %llu",&num,&sign,&n)==3 ...
by sonjbond
Wed Feb 06, 2013 1:32 pm
Forum: Volume 7 (700-799)
Topic: 725 - Division
Replies: 49
Views: 31573

Re: 725 - Division

THANK YOU .... SOLVED :)
by sonjbond
Mon Feb 04, 2013 11:45 am
Forum: Volume 7 (700-799)
Topic: 725 - Division
Replies: 49
Views: 31573

Why WA ? 725 - Division

Why I am getting WA .... Plz help me ................
My sample I/O is correct but .........


here is my code

Code: Select all

Code removed after AC :) 
plz help me
by sonjbond
Sun Oct 21, 2012 12:35 pm
Forum: Volume 100 (10000-10099)
Topic: 10013 - Super long sums
Replies: 212
Views: 67495

Re: 10013 - Super Long Sums(WA Y??)

why i am getting WA ?? plz help me .....
my code is here :
#include<stdio.h>
#include<string.h>
int num1[1000010],num2[1000010],sum[1000015];
int main()
{
long tc;
scanf("%ld",&tc);
while(tc--)
{
//printf("\n");
long i,j,k,m,n,rem;
scanf("%ld",&n);
for(i=0; i<n; i++)
scanf("%d %d",&num1[i ...
by sonjbond
Wed Sep 12, 2012 9:44 pm
Forum: Volume 2 (200-299)
Topic: 271 - Simply Syntax
Replies: 46
Views: 19796

Re: 271 - WA why ???

i m getting WA
my code is here


#include<stdio.h>
#include<string.h>
int main()
{
int i,j,k,len, a,b,c,m,n,t,kase,sum;
char sen[300];
while(gets(sen))
{
len=strlen(sen);
int s=0;
int n=0;
int c=0;
if(len==1&&sen[0]>='p'&&sen[0]<='z')printf("YES");
else if(sen[len-1]>='p'&&sen[len-1]<='z ...
by sonjbond
Tue Sep 11, 2012 9:22 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 49366

Re: 492 why RE?? I/O is correct :S

why i m getting RTE ??
plz help me .........
my code is here :

#include<stdio.h>
#include<ctype.h>
#include<string.h>
int isvowel(char ch)
{
if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'||ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U')
return 1;
else return 0;
}
int main()
{
int i,len,j,k;
char ...
by sonjbond
Fri Jul 27, 2012 8:49 pm
Forum: Volume 104 (10400-10499)
Topic: 10494 - If We Were a Child Again
Replies: 55
Views: 25856

Re: UVA Problem:10494(Why i am getting WA ?)

:o i ve checked so many critical input output . i am still getting WA ,,, plz anybody help me,,,, plz,,,, i am trying this for a long time ..... here's my code:

#include<stdio.h> /*10494*/
#include<string.h>
char num[100000000];
int ans[100000000];
int main()
{
unsigned long long n;
char sign ...
by sonjbond
Fri Jul 27, 2012 8:41 pm
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 45302

Re: 10101 - Bangla Numbers

output is 0 for the input 0 , shouldnt it ?? plz check my code again and help me ........... :( :( :( :(
by sonjbond
Sun Jul 22, 2012 9:25 pm
Forum: Volume 101 (10100-10199)
Topic: 10101 - Bangla Numbers
Replies: 122
Views: 45302

Why WA again n again ?? : 10101 - Bangla Numbers

um getting WA again and again ,,,, heres my code ...... plz help me ..... plz.......
code :

#include<stdio.h>


int main()
{

long long int num;
int i=0;
while(scanf("%lld",&num)==1)
{
long long a,b,c,d,e,f,g,h;
i++;
a=num /100000000000000;
num=num %100000000000000;
b=num/1000000000000 ...
by sonjbond
Sun Jul 15, 2012 11:44 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 49366

Re: why WA?(492)piglatin

plz help .... reply my post plz....
by sonjbond
Mon Jul 09, 2012 4:55 am
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 83757

10070 - Leap Year WA but y ???

plz help ,,, here's my code :

#include<stdio.h>
#include<string.h>
int main()
{
char y[100];
while(gets(y))
{
int i,n,a4=0,a15=0,a55=0,a100=0,a400=0;
i=0;
n=strlen(y);
while(i<n)
{
y =y -48;
a4=(a4*10+y )%4;
a15=(a15*10+y )%15;
a55=(a55*10+y )%55;
a100=(a100*10+y )%100;
a400=(a400*10 ...
by sonjbond
Mon Jul 09, 2012 4:48 am
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 49366

why WA?(492)piglatin

my input output is pk ... bt y i am getting WA ??? plz help me ,,,, i m trying it from last 5 days but cant ,,,,, :( plz help ,,,
here's my code :

#include<stdio.h>
#include<string.h>
int main()
{
char str[1000000],wrd[1000000];
int len,n,i,j,k,l,m;
while(gets(str))
{
len=strlen(str);
m=0 ...
by sonjbond
Fri Jul 06, 2012 3:16 pm
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 83757

10070 - Leap Year or Not Leap Year and …

my code is :

#include<stdio.h>
#include<string.h>
int main()
{
char y[1000000];
while(gets(y))
{
long i,n,a4=0,a15=0,a55=0,a100=0,a400=0;
i=0;
n=strlen(y);
while(i<n)
{
y =y -48;
a4=(a4*10+y )%4;
a15=(a15*10+y )%15;
a55=(a55*10+y )%55;
a100=(a100*10+y )%100;
a400=(a400*10+y )%400;
i ...

Go to advanced search