Search found 6 matches

by nest
Thu May 31, 2012 9:27 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 59905

Re: 10424 - Love Calculator

i corrected it. but again WA
WHY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
by nest
Fri May 25, 2012 12:09 am
Forum: Volume 123 (12300-12399)
Topic: 12366 - King's Poker
Replies: 4
Views: 2433

Re: pls tell me ; why wa

12366.
sorry for that
by nest
Fri May 25, 2012 12:08 am
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 59905

Re: 10424 - Love Calculator

thanks for reply
by nest
Sun May 20, 2012 12:21 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 65338

a message to all; please read it....

One day, one of my favorite teacher challeged me to solve this problem. i tried my best only one night to solve it.
at last i saw it gives the exact output for given sample input.
but this got wa.
i shocked very much.
after a long time, i want to show my code,why is wrong
#include<stdio.h>
#define ...
by nest
Sun May 20, 2012 10:33 am
Forum: Volume 123 (12300-12399)
Topic: 12366 - King's Poker
Replies: 4
Views: 2433

12366 - King's Poker

#include<stdio.h>
int main()
{
int a,b,c;


while(scanf("%d%d%d",&a,&b,&c)==3){
if((a==0||b==0||c==0)||(a<0||b<0||c<0)||(a>13||b>13||c>13))
break;
if(a==13&&a==b&&a==c)
printf("*\n");

else if(a!=13&&a==b&&a==c)
printf("%d %d %d\n",a+1,b+1,c+1);
else if(a==b&&a!=13){
if(c<13){
if(c<a ...
by nest
Sun May 20, 2012 10:23 am
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 59905

i can't understand that why wa, pls help me:

#include<stdio.h>
//#include<conio.h>
#include<string.h>
float sum_s(int n,char s[]);
int main(){
int n1,n2,f;
double res;
char s1[30],s2[30];



while(gets(s1)){
gets(s2);
n1=strlen(s1);
n2=strlen(s2);
double s11=sum_s(n1,s1);
double s22=sum_s(n2,s2);
if(s11==0.00&&s22==0.00){
printf("\n ...

Go to advanced search