Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160588 Kevin N的阶乘 C++ Wrong Answer 1 MS 272 KB 239 2026-09-24 15:11:29

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; long long jc(int n){ long long s=1; for(int i=1;i<=n;i++){ s*=i; } return s; } int main() { int a; while(cin>>a){ cout<<jc(a)<<endl; } return 0; }


Run Info:

------Input------
0 4 7 8 42 523 888 997
------Answer-----
1 24 5040 40320 1405006117752879898543142606244511569936384000000000 25048355594480342695158979612155875784564534314272643362039535686754011314069649443448921257778972223025893523517921191090369997299447011982139734402963441924083520599452377337649290194663130107684550972227214873026653580669156144797818292325486358203931728140453950173863725506560159732500802329453886034932204756146146353403899692271558235549377844186918156484450926534631112559623096020148433110543953554563001126409053772818099
------Your output-----
1 24 5040 40320 7538058755741581312 0 0 0