Fisa Flood (UVA 13052) by ynu_a
Contest: 3738    RunID: 20174186    Status: Accepted    Date: Sat Oct 14 15:29:19 JST 2017


#include<bits/stdc++.h>
using namespace std;

int main(){
    int t;
    cin >> t;
    for(int i=1;i<=t;++i){
        int a, b;
        cin >> a >> b;
        if(a == 0 && b == 0){
            printf("Case %d: 0.000 0.000\n",i);
        }else if(b % 2 == 0){
            printf("Case %d: 1.000 0.000\n",i);
        }else{
            printf("Case %d: 0.000 1.000\n",i);
        }
    }

    return 0;
}