题目链接:www.51nod.com/onlineJudge/questionCode.html#!problemId=1057

 

思路:直接for循环呗~

 

代码:

1 n = int( raw_input() );
2 ans = 1;
3 for i in range(2,n+1):
4     ans *= i;
5 print ans;

 

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-02-12
  • 2021-10-04
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-05
  • 2021-04-20
  • 2021-09-23
  • 2022-01-17
  • 2021-08-12
相关资源
相似解决方案