This commit is contained in:
parent
af24f23707
commit
e862efa6c7
|
@ -5,7 +5,7 @@ long long dg(long long n){
|
||||||
if(n==1){
|
if(n==1){
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return n+dg(n-1);
|
return n*dg(n-1);
|
||||||
}
|
}
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
|
BIN
1659_n!/main.exe
BIN
1659_n!/main.exe
Binary file not shown.
|
@ -1,18 +1,18 @@
|
||||||
## z:\Chao\src\1659_n!\test\in.txt
|
## z:\Chao\src\1659_n!\test\in.txt
|
||||||
2020/04/24 周五 13:42:16.59
|
2020/04/24 周五 13:46:26.28
|
||||||
1
|
1
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
Process exited after 190 ms with return value 0
|
Process exited after 140 ms with return value 0
|
||||||
|
|
||||||
## z:\Chao\src\1659_n!\test\in2.txt
|
## z:\Chao\src\1659_n!\test\in2.txt
|
||||||
2020/04/24 周五 13:42:16.59
|
2020/04/24 周五 13:46:26.28
|
||||||
1307674368000
|
1307674368000
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
Process exited after 100 ms with return value 0
|
Process exited after 90 ms with return value 0
|
||||||
|
|
||||||
## z:\Chao\src\1659_n!\test\in3.txt
|
## z:\Chao\src\1659_n!\test\in3.txt
|
||||||
2020/04/24 周五 13:42:16.59
|
2020/04/24 周五 13:46:26.28
|
||||||
24
|
24
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
Process exited after 110 ms with return value 0
|
Process exited after 180 ms with return value 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue