Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
46388 | 杨中琦 | 编程求n!=1*2*3*...*n | C++ | Accepted | 100 | 0 MS | 256 KB | 145 | 2022-07-13 12:55:03 |
#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; }