제출 #924252

#제출 시각아이디문제언어결과실행 시간메모리
924252rainboy타일 장식물 (KOI16_bb)C11
100 / 100
1 ms604 KiB
#include <stdio.h> int main() { int n; long long a, b, tmp; scanf("%d", &n); a = 1, b = 1; while (n--) tmp = a + b, a = b, b = tmp; printf("%lld\n", b * 2); return 0; }

컴파일 시 표준 에러 (stderr) 메시지

bb.c: In function 'main':
bb.c:7:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    7 |  scanf("%d", &n);
      |  ^~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...