Search found 13 matches

by john_locke
Fri Sep 28, 2007 10:22 am
Forum: Volume 5 (500-599)
Topic: 530 - Binomial Showdown
Replies: 137
Views: 33377

why WA

I think my code gives the right answers but why WA please give some critical input /*problem for solving nCk Author :-Vivek Sharma */ #include<iostream> #include<cstdio> #include<cmath> using namespace std; int main() { long double n,k;//binomial coefficient while(cin>>n>>k) { if(n==0&&k==0) return ...
by john_locke
Tue Mar 20, 2007 7:44 am
Forum: C
Topic: problem with c code
Replies: 5
Views: 5552

dear MF

the link provided by you is not working can u give some another link.
by john_locke
Mon Mar 19, 2007 7:57 am
Forum: C
Topic: problem with c code
Replies: 5
Views: 5552

thanx to both of you i got the point
by john_locke
Tue Feb 13, 2007 10:32 pm
Forum: C
Topic: problem with c code
Replies: 5
Views: 5552

problem with c code

hi i have an problem with my c code
#include<iostream>
using namespace std;
int main()
{
int k=35;
printf("%d %d %d %d ",k==35,k=50,k,k>40);
return 0;
}

why the output of these problem is

0 50 35 0
by john_locke
Sun Feb 04, 2007 9:17 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 30897

this problem drove me toward madness i got 20 presentation errors from judge tried all the combinations after reading previous post so plzzz help me
DELETED after -AC
thanx



by john_locke
Fri Feb 02, 2007 5:04 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 61406

thanx helloneo
i got AC its just by adding e-10 in my output
by john_locke
Fri Feb 02, 2007 4:27 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 61406

removed
by john_locke
Fri Feb 02, 2007 11:12 am
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 61406

10200

hi friend why i am getting time limit exceed
remove
by john_locke
Mon Jan 29, 2007 10:35 pm
Forum: Volume 5 (500-599)
Topic: 576 - Haiku Review
Replies: 50
Views: 17568

hi friends i tried all the sample input from the forum but still get WA #include<iostream> #include<string> using namespace std; int main() { string str; string test = "e/o/i"; while(getline(cin,str)) { if(str==test) { return 0; } else { int j=0; int count[3]; for(int i=0;i<3;i++) count =0; bool inw...
by john_locke
Mon Jan 29, 2007 7:11 am
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 39229

hi friends this is my code dont know why i am getting wrong answer #include<iostream> #include<string> #include<stdio.h> using namespace std; int main() { float percen,m1,m2; char s1[30],s2[30]; int len1,len2,temp,temp2; while(cin.getline(s1,26)) { cin.getline(s2,26); int sum1=0,sum2=0; len1=strlen(...
by john_locke
Fri Nov 10, 2006 3:46 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 24758

Thanx nafi
got ACC :D after 30 submission
by john_locke
Mon Oct 16, 2006 9:49 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 24758

160-wa

here is my code cant find the error values are correct, format is correct but still get WA.....
so plz help me
CODE IS DELETED

thanx in advance[/quote]
by john_locke
Tue Oct 10, 2006 10:14 am
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 11178

591 with P.E

This is my code cant find why i get P.E plz help me #include<iostream> using namespace std; int main() { int i=1,k,h[100]; cin>>k; while(k!=0) { int sum=0; for(int j=0;j<k;j++) { cin>>h[j]; sum=sum+h[j]; } int t=sum/k; int s=0; for(int j=0;j<k;j++) { if(h[j]>t) s=s+(h[j]-t); } cout<<"Set #"<<i<<endl...

Go to advanced search