ACCEPTED !!! I missed this one during the Dhaka regionals due to a silly error...
____________________________________________________________________
Question: Bachelor Arithmetic
____________________________________________________________________
#include "iostream.h"
int main()
{
int count = 1;
while(1) {
long long int b, s;
cin >> b >> s;
if(b == 0 && s == 0) break;
cout << "Case " << count << ": :-";
if(b <= s) {
if(b == 1) cout << "\\";
else cout << "|";
}
if(b > s) cout << "(";
cout << endl;
count++;
}
return 0;
}
____________________________________________________________________
Tuesday, December 11, 2007
Bachelor Arithmetic
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment