Navigation Menu

Skip to content

Commit

Permalink
11984 solved
Browse files Browse the repository at this point in the history
  • Loading branch information
ksaveljev committed May 17, 2011
1 parent 3d085a2 commit 5f105a9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 11984.cpp
@@ -0,0 +1,24 @@
#include <iostream>
#include <cstdio>
using namespace std;

int main(void) {
int t;
double c, f;

cin >> t;

for (int i = 0; i < t; i++) {
cin >> c >> f;

double tmp = 9.0 * c / 5.0 + 32.0;
tmp += f;

c = (tmp - 32) * 5 / 9.0;

cout << "Case " << i+1 << ": ";
printf("%.2f\n", c);
}

return 0;
}

0 comments on commit 5f105a9

Please sign in to comment.