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