結果
| 問題 |
No.8045 怪文書
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-26 20:40:18 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 247 bytes |
| コンパイル時間 | 1,725 ms |
| コンパイル使用メモリ | 165,476 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-28 20:30:24 |
| 合計ジャッジ時間 | 7,936 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 16 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
long factorial(long n){
if (n<=1) return 1;
return n*factorial(n-1);
}
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
long n;
cin>>n;
cout<<factorial(n)<<"\n";
}