2023 rcpc
This commit is contained in:
17
2023/rcpc/d1/editorial/H. The Binary Matrix of All Time.cpp
Normal file
17
2023/rcpc/d1/editorial/H. The Binary Matrix of All Time.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
/// Gheorghies Alexandru
|
||||
#include<bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
typedef long long ll;
|
||||
void tc(){
|
||||
ll n,m;
|
||||
cin>>n>>m;
|
||||
cout<<(n*m*2+2)/3<<'\n';
|
||||
}
|
||||
int main()
|
||||
{
|
||||
ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
|
||||
ll t; cin>>t; while(t--)
|
||||
tc();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user