Search found 1 match

by dennywithy
Fri Nov 05, 2010 5:24 am
Forum: Volume 5 (500-599)
Topic: 573 - The Snail
Replies: 45
Views: 18960

Re: 573 The Snail Why WA ?

why i get wrong output at this test: 50 5 3 14 ->9 (my output) 50 6 4 1 ->89 50 6 3 1 ->19 1 1 1 1 -> 1 ? #include <stdio.h> #include <iostream> using namespace std; int main() { float h,u,d,f; do { int hari=0; scanf("%f %f %f %f",&h, &u, &d, &f); if (h>0) { float cur =0; float after=0; bool stat = ...

Go to advanced search