题意:给一个a,b,求 gcd(a!,b!),输出min(a,b)! 就可以了
AC代码:
#include#include "iostream"#include "string.h"#include "stack"#include "queue"#include "string"#include "vector"#include "set"#include "map"#include "algorithm"#include "stdio.h"#include "math.h"#define ll long long#define bug(x) cout< <<" "<<"UUUUU"< >a>>b; for(int i=2; i<=min(a,b); ++i){ ans*=i; } cout< <