제출 #7625

#제출 시각아이디문제언어결과실행 시간메모리
7625gs13068팩토리얼 세제곱들의 합 (YDX14_fact)C++98
0 / 1
0 ms1088 KiB
#include<cstdio>

int a[3][5]={{1,2,4,1,4},{1,2,6,2,8},{1,2,1,6,5}};

int main()
{
  int i,n,m;
  scanf("%d%d",&n,&m);
  if(n>4)n=4;
  printf("%d",a[m-1][n]);
}
#Verdict Execution timeMemoryGrader output
Fetching results...