結果
| 問題 |
No.500 階乗電卓
|
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2022-07-13 09:37:30 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 273 bytes |
| コンパイル時間 | 3,280 ms |
| コンパイル使用メモリ | 243,780 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-24 08:36:35 |
| 合計ジャッジ時間 | 3,592 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int N;
cin>>N;
if(N >= 50) cout<<"000000000000"<<endl;
else{
int ans = 1;
for(int i=1;i<=N;i++){
ans *= i;
ans %= 1000000000000;
}
cout<<ans<<endl;
}
}
keisuke6