Submission #00094
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #include <map> #include <set> #include <cmath> #include <queue> #include <stack> #include <cctype> #include <cstdio> #include <string> #include <vector> #include <cstdlib> #include <cstring> #include <sstream> #include <iostream> #include <algorithm> #include <functional> #define INF (2 << 28) #define fr first #define sc second using namespace std; typedef long long ll; typedef pair< int , int > iP; int rec( int n){ if (n <= 1) return 1; return rec(n - 1) * n; } int main(){ int n; cin >> n; cout << rec(n) << endl; } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - 目だけいいもりた |
ユーザー名 | Jogasaki_Mika_Tanto_P |
投稿日時 | 2015-05-26 16:59:24 |
言語 | C++11 |
状態 | Accepted |
得点 | 15 |
ソースコード長 | 568 Byte |
最大実行時間 | 11 ms |
最大メモリ使用量 | 520 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 10 / 10 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
sample_in.txt | AC | 10 ms | 520 KB |
1
|
sample_in2.txt | AC | 10 ms | 512 KB |
1
|
sample_in3.txt | AC | 11 ms | 508 KB |
1
|
sample_in5.txt | AC | 9 ms | 500 KB |
1
|