Help me in solving NICEARRAY problem

My issue

Can I do one ceil and another floor

My code

#include <bits/stdc++.h>
#define ll long long
using namespace std;

int main() {
    ll test;
    cin>>test;
    while(test--){  
        
    }
}

Problem Link: Nice Array Practice Coding Problem