Help me in solving DICEGAME3 problem

My issue

how to solve it

My code

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

int main() {
	int T;
	cin>>T;
	for(int i=0;i<T;i++){
	    int N;
	    cin>>N;
	    int score=0;
	    int proll=0;
	    for(int i=0;i<N;i++){
	        if(proll==1){
	            score=score+(2*6);
	        }else{
	            score=score+1;
	        }
	        proll=6;
	        
	    }cout<<score<<endl;
	}

}

Problem Link: Dice Game 3 Practice Coding Problem - CodeChef

Actually the question is about printing the maximum score in given number of rounds. There is no list of scores is given. We have to print the maximum possible score depending on number of rounds.
You can check the number of rounds as even or odd
Let us assume,
If the rounds are even:
[1, 6,1,6]=1+(26) +1+(26)
Here the logic is:
Number rounds(n) =4
( N//2)(1+26) =n//213
If the rounds are odd:
[1, 6,1,6,6]=(n//2
13) +6
If n==1:
Print(6)