delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

16
5.1047D.cpp Normal file
View File

@ -0,0 +1,16 @@
#include<cstdio>
#include<algorithm>
using namespace std;
int main()
{
#ifdef local
freopen("pro.in","r",stdin);
#endif
int n,m;
scanf("%d%d",&n,&m);
if(n>m) swap(n,m);
if(n==1) printf("%d",(m/6*3+max(m%6-3,0))*2);
else if(n==2) printf("%d",m==2?0:m==3?4:m==7?12:m*2);
else printf("%lld",1LL*n*m/2*2);
return 0;
}