Friday, December 8, 2017

11044 - Searching for Nessy Uva Problem Solution


#include <bits/stdc++.h>
using namespace std;
// Nayeem Shahriar Joy , Applied Physics & Electronic Engineer9ng, University of Rajshahi.

int main() {
    int T,a,b;
    cin >> T;
    for(int t = 0; t< T; t++){

        cin >> a>>b;
        cout<<(a/3)*(b/3)<<endl;
    }
    return 0;
}

No comments:

Post a Comment