Submission #00026


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
int main() {
long long n, a = 0, b = 1, c = 1;
scanf("%lld", &n);
for (int i = 0; i < n; i++) {
a = b;
b = c;
c = a + b;
}
printf("%lld\n", a);
return(0);
}

ステータス

項目 データ
問題 0009 - ハローキティーのあずきバー工場
ユーザー名 woody_1227
投稿日時 2022-05-23 17:07:23
言語 C
状態 Accepted
得点 4
ソースコード長 236 Byte
最大実行時間 24 ms
最大メモリ使用量 620 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
test01.txt AC 19 ms 220 KB
1
test02.txt AC 18 ms 404 KB
1
test03.txt AC 20 ms 460 KB
1
test04.txt AC 17 ms 408 KB
1
test05.txt AC 19 ms 564 KB
1
test06.txt AC 17 ms 620 KB
1
test07.txt AC 23 ms 456 KB
1
test08.txt AC 24 ms 472 KB
1