1 solutions
-
0
C :
#include <stdio.h> #include <stdlib.h> int main() { printf("4037913"); return 0; }C++ :
#include<cstdio> int i,j; long long m,n; int main(){ for(i=1;i<=10;i++) {n=1; for(j=1;j<=i;j++) n*=j; m+=n; } printf("%d\n",m); return 0; }Pascal :
var s,i,j,t:longint; begin s:=0; for i:=1 to 10 do begin t:=1; for j:=1 to i do t:=t*j; s:=s+t; end; writeln(s); end.
- 1
Information
- ID
- 18099
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By