Search found 1 match

by heera.brur
Mon Sep 15, 2014 1:48 pm
Forum: Volume 114 (11400-11499)
Topic: 11479 - Is this the easiest problem?
Replies: 48
Views: 27348

Re: 11479 - Is this the easiest problem?

Why wrong answer on following code ?
#include <stdio.h>
int main() {
long long int i,m,a,b,c;
scanf("%lld",&m);


for(i=1; i<=m; i++) {
scanf("%lld %lld %lld",&a,&b,&c);

printf("Case %lld: ", i);

if(a<=0 || b<=0 || c<=0) {
printf("Invalid\n");
continue;
}

if(a==b && b==c) {
printf ...

Go to advanced search