結果
| 問題 |
No.500 階乗電卓
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-10-07 01:17:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 530 bytes |
| コンパイル時間 | 833 ms |
| コンパイル使用メモリ | 94,172 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-10-07 01:17:27 |
| 合計ジャッジ時間 | 2,210 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 11 WA * 9 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <set>
#include <unordered_set>
#include <cstring>
#include <queue>
#include <bitset>
#include <map>
#include <stack>
using namespace std;
const long long int MOD = 1e12;
int main(void)
{
cin.tie(0);
ios::sync_with_stdio(false);
long long int n;
cin >> n;
if(n>=50)
{
cout << "000000000000" << '\n';
}
else
{
long long val = 1;
for(int i=1;i<=100;i++)
{
val*=i;
val%=MOD;
}
cout << val << '\n';
}
return 0;
}