Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
126558 | 唐钧 | 计算n的阶乘 | C++ | 通过 | 100 | 0 MS | 248 KB | 206 | 2024-01-24 16:40:23 |
#include<bits/stdc++.h> using namespace std; priority_queue<int,vector<int>,greater<int> >t; int main() { long long a,b=1; cin>>a; for(int i=1;i<=a;i++) { b*=i; } cout<<b; return 0; }