Search found 16 matches

by unreleased
Tue Mar 24, 2015 2:50 pm
Forum: Volume 110 (11000-11099)
Topic: 11093 - Just Finish it up
Replies: 14
Views: 11136

Re: 11093 - Just Finish it up

query: why WA??
is the idea wrong??
//Mr. WA its for you//
//This may contaminated by WA//
//Aph you see ke y WA ....its not cypher//
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm ...
by unreleased
Sun Feb 15, 2015 8:48 pm
Forum: Volume 4 (400-499)
Topic: 490 - Rotating Sentences
Replies: 212
Views: 47995

Re: 490 - Rotating Sentences

why WA??

#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <iterator>
#include <map>
#include <set>
#include <sstream>
#include <utility>
#include <bitset>

#define mx ...
by unreleased
Fri Feb 13, 2015 4:51 pm
Forum: Volume 119 (11900-11999)
Topic: 11965 - Extra Spaces
Replies: 31
Views: 12603

Re: 11965 - Extra Spaces

brianfry713 wrote:That is AC code.
aah yeah its AC :o but i can't really remember if i've changed anything in my WA code before posting :roll:
by unreleased
Fri Feb 13, 2015 4:33 pm
Forum: Volume 110 (11000-11099)
Topic: 11074 - Draw Grid
Replies: 4
Views: 4674

Re: 11074 - Draw Grid

brianfry713 wrote:Print a blank line after the output of each case, including the last one.
aaah AC :)
by unreleased
Fri Feb 13, 2015 5:02 am
Forum: Volume 8 (800-899)
Topic: 865 - Substitution Cypher
Replies: 28
Views: 21035

Re: 865 - Substitution Cypher

Always print a newline char at the end of the last line.
aah its WA too after adding a newline at the end :( ....
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include ...
by unreleased
Thu Feb 12, 2015 2:28 am
Forum: Volume 8 (800-899)
Topic: 865 - Substitution Cypher
Replies: 28
Views: 21035

Re: 865 - Substitution Cypher

why WA??
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <iterator>
#include <map>
#include <set>
#include <sstream>
#include <utility>
#include <bitset>

#define mx 1000000 ...
by unreleased
Thu Feb 12, 2015 2:25 am
Forum: Volume 110 (11000-11099)
Topic: 11074 - Draw Grid
Replies: 4
Views: 4674

Re: 11074 - Draw Grid

why WA??
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <iterator>
#include <map>
#include <set>
#include <sstream>
#include <utility>
#include <bitset>

#define mx 1000000 ...
by unreleased
Thu Feb 12, 2015 2:20 am
Forum: Volume 119 (11900-11999)
Topic: 11965 - Extra Spaces
Replies: 31
Views: 12603

Re: 11965 - Extra Spaces

why WA??
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <iterator>
#include <map>
#include <set>
#include <sstream>
#include <utility>
#include <bitset>

#define mx 1000000 ...
by unreleased
Sun Nov 30, 2014 7:18 pm
Forum: Volume 113 (11300-11399)
Topic: 11340 - Newspaper
Replies: 154
Views: 68721

Re: 11340 - Newspaper

whats wrong in this code.........??
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <iterator>
#include <map>
#include <set>

#define mx 1000000

#define D double
#define L ...
by unreleased
Thu Oct 09, 2014 7:59 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 79269

Re: 673 - Parentheses Balance

why WA??
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
#include <string>
#include <cstring>
#include <queue>
#include <set>
#include <stack>
#include <map>

using namespace std;
int main()
{
string str1, str2;
stack <char> ch;
int a, b, c, tst,len ...
by unreleased
Wed Aug 27, 2014 8:34 pm
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 27477

Re: 11428 - Cubes

brianfry713 wrote:Next time post in the existing thread. Input 1, AC output No solution

Input 1, AC output No solution???
i dont understand :p

but i think for which case output could be 2 set or more this code printing all of them causing the ERROR.....
by unreleased
Wed Aug 27, 2014 11:54 am
Forum: Volume 114 (11400-11499)
Topic: 11428 - Cubes
Replies: 64
Views: 27477

11428 - Cubes why WA?????

#include <iostream>
#include <vector>
using namespace std;
int main()
{
int a, b ,c, n;
long x;

while(cin>>n)
{
bool z=false;
if(n==0) break;
if(n==1)
{
cout<<"1 0\n";
continue;
}

for(a=1; a*a<n; a++)
{
x=a*a*a;

if(x==n)
{
cout<<a<<" 0\n";
z=true;
}

if(x>n)
{
for(b=1; b<a ...
by unreleased
Mon Feb 03, 2014 1:25 pm
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70165

Re: uva 10137 the trip getting WA

would u please elaborate.........
i didnt get it clearly.......... :p
by unreleased
Thu Jan 30, 2014 8:22 pm
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70165

uva 10137 the trip getting WA

i cant find error whats wrong in my code pls helpan



#include<stdio.h>
int main()
{
int a, b, c, d, st_num,rest;
double amnt[1010], avrg, ans, total;
while(scanf("%d", &st_num)&&st_num!=0)
{
total=0;
for(a=0; a<st_num; a++)
{
scanf("%lf", &amnt[a]);
total+=amnt[a];
}
avrg=total/st_num ...
by unreleased
Tue Dec 17, 2013 6:42 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 152559

UVa 10038 (jolly jumper)...... whats wrong in my code?? :p

#include<stdio.h>
int main()
{
int i, j, k , cs, num,sum1,sum2;
int rem[3010];
while(scanf("%d", &cs)!=EOF)
{
j=0;
sum1=0;
for(i=0; i<cs; i++)
{
scanf("%d", &num);
rem =abs(num-j);
j=num;
}

for(k=1; k<cs; k++)
{
sum1+=rem[k];
}

sum2=cs*(cs-1)/2;
if(sum1==sum2)
printf("Jolly\n ...

Go to advanced search