Submission #00021


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
signed main() {
long long d;
long long a,b,tem;
long long i;
a = 1;
b = 0;
tem = 1;
scanf("%lld",&d);
for(i = 0;i < d-1;i++){
a+=b;
b = tem;
tem = a;
}
printf("%lld\n",a);
return(0);
}

ステータス

項目 データ
問題 0005 - ハローキティーのあずきバー工場
ユーザー名 ei1929
投稿日時 2019-05-29 17:04:46
言語 C
状態 Accepted
得点 5
ソースコード長 270 Byte
最大実行時間 27 ms
最大メモリ使用量 564 KB

セット

セット 得点 Cases
1 ALL 5 / 5 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
test01.txt AC 26 ms 376 KB
1
test02.txt AC 26 ms 304 KB
1
test03.txt AC 18 ms 312 KB
1
test04.txt AC 15 ms 356 KB
1
test05.txt AC 15 ms 408 KB
1
test06.txt AC 27 ms 460 KB
1
test07.txt AC 21 ms 512 KB
1
test08.txt AC 19 ms 564 KB
1