# UVa 11984 ### 題目連結:[UVa11984](http://domen111.github.io/UVa-Easy-Viewer/?11984) ### 題述: ### c++ code: ```cpp= #include<iostream> #include<cstdio> using namespace std; int main() { //------------------------------------------------ #ifdef local freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); #endif ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); //------------------------------------------------ int n ; double a ; double b ; double sum ; cin >> n ; int m = 1 ; while ( n != 0 ) { n -= 1 ; cin >> a >> b ; sum =( ( ( ( a * 9 / 5 ) + 32 ) + b ) - 32 ) * 5 / 9 ; printf("Case %d: %.2f\n",m,sum); m += 1 ; } } ``` :::success **``sample input``** ::: :::success **``sample output``** ::: #### [返回首頁](https://hackmd.io/@fkleofk/APCS#11984) ###### tags: `APCS選修` `C++` `UVa`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up