Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
574 | 孙灏洋 | 编程求n!=1*2*3*...*n | C++ | Accepted | 100 | 0 MS | 252 KB | 145 | 2019-09-21 10:50:17 |
#include<iostream> int main(){ int a,b,c,max; a=1; scanf("%d",&b); while(1<=b){ a=a*b; b=b-1; } printf("%d",a); return 0; }