Meena o Rajur Boring Class

Limits: 1s, 32 MB

One day, the teacher in Meena and Raju’s school was teaching the students about Fibonacci numbers. To make the class more interesting she show them this diagram:


This is a companion discussion topic for the original entry at https://toph.co/p/meena-o-rajur-boring-class

i can not understand the problem…help me!

//um passing time with the chili sauce
#include<bits/stdc++.h>
using namespace std;
#define  io_fast()         ios :: sync_with_stdio(false); cin.tie(0);
#define  go            return 0
#define  ll             long long int
#define  ull            unsigned long long int
#define  ld             long double
#define  vi             vector<int>
#define vl            vector<long long>
#define vc             vector<char>
#define vs             vector<string>
#define vp             vector< pair<ll,ll> >
#define sl             set<long long>
#define sc             set<char>
#define sts            stack<string>
#define max_3(a,b,c) max(a, max(b,c))
#define max_4(a,b,c,d) max(a,max(b,max(c,d)))
#define min_3(a,b,c) min(a, min(b,c))
#define min_4(a,b,c,d) min(a,min(b,min(c,d)))
#define gcd(a,b) __gcd(a,b)
#define lcm(a,b) (a*b)/gcd(a,b)
#define pi 2*acos(0.0)
#define N 100001
int a[N],b[N];
long long int F[35];
void fib()
{
    F[1]=1;
    F[2]=1;
    for(int i=3; i<=35; i++)
    {
        F[i]=F[i-1]+F[i-2];
    }
}
int main()
{
    io_fast();
     fib();
    ll t,n,r;
    float cir,ans=0;
    cin>>t;
    while(t--)
    {
        cin>>n;
        for(int j=1; j<=n; j++)
        {
            r=F[j]*F[j];
            cir=(3.141593*r)/4;
            ans+=r-cir;

        }
        printf("%.2f\n",ans);
        ans=0;
    }
    go;
}

whats the pb with this code?

@hjr265 figure missing of this problem. please fix it.

1 Like

@FuadHossain Thank you for reporting this. The problem statement has been updated.