OJ-Problems-Source/HDOJ/2518_autoAC.cpp
2016-08-22 00:30:27 +08:00

15 lines
274 B
C++

#include<stdio.h>
#include<string.h>
#include<algorithm>
int a[] = {0, 0, 0, 2, 368, 1010, 2339};
int main()
{
int x, y;
while(scanf("%d%d", &x, &y) == 2)
{
if(x > y) std::swap(x, y);
printf("%d\n", a[x]);
}
return 0;
}