Submission #00045


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include<iostream>
using namespace std;
int main()
{
int a, i, ans=1;
cin >> a;
if (a != 0) {
for (i = 1; i <= a; i++) {
ans *= i;
}
}
else {
ans = 0;
}
cout << ans << endl;
}

ステータス

項目 データ
問題 0002 - 目だけいいもりた
ユーザー名 ei1439
投稿日時 2015-05-26 16:40:52
言語 C++11
状態 Wrong Answer
得点 0
ソースコード長 238 Byte
最大実行時間 13 ms
最大メモリ使用量 596 KB

セット

セット 得点 Cases
1 ALL 0 / 10 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
sample_in.txt AC 11 ms 596 KB
1
sample_in2.txt AC 10 ms 588 KB
1
sample_in3.txt AC 10 ms 576 KB
1
sample_in4.txt AC 13 ms 564 KB
1
sample_in5.txt WA 10 ms 556 KB
1