Source Code
#include <iostream>
using namespace std; 

int main() {
int n; 
double z=4.5; 
cin>>n; 
if(n>2){
for(int i=1; i<n-1;i++){
  z+=10; 
}
cout<<12*z; 
}
else if(n==2) cout<< 12*z; 
else cout<<12; 
 
}
Copy
ID Product LaYaN
GNU G++17
1 ms
640 KB
Wrong Answer