Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: mameeewin

Problemset: ลูกเต๋า

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-09 19:21:54

#include <iostream>
using namespace std;

int main(){
  long long n, a=1, b=1, c=1; cin >> n;
  for (long long i=0; i<n-2; i++){
    c=a+b;
    a=b;
    b=c;
  }
  cout << c;
}