Search found 16 matches

by Blief.S
Tue Jul 01, 2014 9:36 am
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 66923

Re: 10324 - Zeros and Ones WHy WA

Getting WA...... Every i/o is correct.... Why WA plz help......
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
int n,i,j,cas=0,flag,mini,macs,k,l,siz;
char str[1000001];
char c[100];
while(scanf("%s",&str)!=EOF){
gets(c);
if(c[0]=='\n')
return 0;
scanf("%d",&n ...
by Blief.S
Sat Jun 28, 2014 2:52 pm
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 47241

Re: 119 Why WA??

Thanks lbv... :)
by Blief.S
Sat Jun 28, 2014 2:47 pm
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 47241

Re: 119 Why WA??

by Blief.S
Fri Jun 27, 2014 12:09 pm
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 47241

Re: 119 Why WA??

gtcoder wrote:
Input

Code: Select all

2
Fat Dude
Fat 1000 0
Dude 100 1 Fat
Output

Code: Select all

Fat 100
Dude -100
3. Print a blank line after each case except the last one.
when money given to 0 it becomes 0?
what happens 0 given to anyone?

Code: Select all

laura 0 2 amr vick
by Blief.S
Tue Jun 24, 2014 8:41 am
Forum: Volume 115 (11500-11599)
Topic: 11559 - Event Planning
Replies: 29
Views: 15192

Re: 11559 Event planning

Thanks it was a sleepy mistake. Do not submit a code when you feel asleep :lol:
by Blief.S
Tue Jun 24, 2014 8:01 am
Forum: Volume 109 (10900-10999)
Topic: 10963 - The Swallowing Ground
Replies: 47
Views: 20570

Re: 10963 - The Swallowing Ground

last WA submission...........
Code
#include <stdio.h>
int main()
{
int a,b,c,d,k,m=0,n,i,j;
int arr[1000];
scanf("%d",&a);
for (i=0;i<a;i++){
scanf("%d",&b);
c=0;
d=0;
k=b;
for (j=0;j<b;j++){
scanf("%d %d",&c,&d);
n=c-d;
if(n<0) n=n*(-1);
arr[j] = n;
}
}
for(i=0;i<a;i++){

for(j=0 ...
by Blief.S
Tue Jun 24, 2014 7:59 am
Forum: Volume 109 (10900-10999)
Topic: 10963 - The Swallowing Ground
Replies: 47
Views: 20570

Re: 10963 - The Swallowing Ground

Which one shoould i do print a blank line between every test case & print blank line in consecutive outouts.. &
1.Print a new line before first output (got WA)
2.Print a new line after last output (got WA)
3.None (Which i have done in my last submission) (Still WA)
is there any problem in the input ...
by Blief.S
Tue Jun 24, 2014 7:45 am
Forum: Volume 109 (10900-10999)
Topic: 10963 - The Swallowing Ground
Replies: 47
Views: 20570

Re: 10963 - The Swallowing Ground

For the 7th time got WA. Tried every way printing line(Two consecutive outputs & after or before last or first output) /not printing either way. Now i am helpless...........
#include <stdio.h>
int main()
{
int a,b,c,d,k,m=0,n,i,j;
int arr[1000];
scanf("%d",&a);
for (i=0;i<a;i++){
//printf("\n ...
by Blief.S
Mon Jun 23, 2014 2:27 pm
Forum: Volume 115 (11500-11599)
Topic: 11559 - Event Planning
Replies: 29
Views: 15192

Re: 11559 Event planning

Code: Select all

AC Dlete
by Blief.S
Mon Jun 23, 2014 6:17 am
Forum: Volume 109 (10900-10999)
Topic: 10963 - The Swallowing Ground
Replies: 47
Views: 20570

Re: 10963 - The Swallowing Ground

WA three times.... Don't know why! plz help.........
#include <stdio.h>
int main()
{
int a,b,c,d,k,m=0,n,i,j;
int arr[1000];
scanf("%d",&a);
for (i=0;i<a;i++){
printf("\n");
scanf("%d",&b);
c=0;
d=0;
k=b;
for (j=0;j<b;j++){
scanf("%d %d",&c,&d);
n=c-d;
if(n<0) n=n*(-1);
arr[j] = n ...
by Blief.S
Sat Jun 21, 2014 2:52 pm
Forum: Volume 101 (10100-10199)
Topic: 10114 - Loansome Car Buyer
Replies: 38
Views: 21186

Re: 10114 - Loansome Car Buyer

What is the problem in this code plz.....some test cases didn't pass..... got no idea why??
#include <stdio.h>
int main()
{
int month,cas,n,i,j,mon[1000];
float down,loan,owe,worth,dep[1000],instlmnt;
while(scanf("%d %f %f %d",&month,&down,&loan,&cas)){
if(month<0) break;
n=0;
owe=0;
worth=0 ...
by Blief.S
Fri Jun 20, 2014 10:47 am
Forum: Volume 6 (600-699)
Topic: 621 - Secret Research
Replies: 45
Views: 27685

Re: 621 - Secret Research

Thanks. I got AC
by Blief.S
Thu Jun 19, 2014 10:58 pm
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 56394

Re: Got Presentation Error. Tried every way. still PE. Plz h

text quotes - 272
by Blief.S
Thu Jun 19, 2014 9:29 pm
Forum: Volume 6 (600-699)
Topic: 621 - Secret Research
Replies: 45
Views: 27685

Re: 621 - Secret Research

6 times got RE........ plz....help...i am totally helpless to solve this...passed all cases above...

Code: Select all

Removed After AC Thanks for the help
by Blief.S
Thu Jun 19, 2014 8:59 pm
Forum: Volume 6 (600-699)
Topic: 621 - Secret Research
Replies: 45
Views: 27685

621-Secret Research

I am getting RE though i passed every test cases...........plz.....help....
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
int n,m,i;
char str[100];
scanf("%d",&n);
while(n--){
scanf("%s",&str);
m=strlen(str);
char s[100];
for(i=0;i<m;i++){
s[i]=str[i];
}
if((s[0 ...

Go to advanced search