#33426: C++ ANS


yp11151097@yphs.tp.edu.tw (908-30施耀登)

School : 臺北市私立延平高級中學
ID : 197083
IP address : [203.72.178.2]
Last Login :
2024-12-09 11:46:40
d039. 11044 - Searching for Nessy -- UVa11044 | From: [203.72.178.1] | Post Date : 2023-01-05 17:17

#include<bits/stdc++.h>
using namespace std;
main(){
int a,b,n;
while(cin>>n){
    for(int i=1;i<=n;i++){
        cin>>a>>b;
        cout<<(a/3)*(b/3)<<endl;
    }
}
}

 
ZeroJudge Forum