mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
14 lines
196 B
C++
14 lines
196 B
C++
#include<stdio.h>
|
|
int main()
|
|
{
|
|
int n,s=2,i,m;
|
|
scanf("%d",&n);
|
|
while(n--)
|
|
{
|
|
scanf("%d",&m);
|
|
s+=6*(m-1);
|
|
printf("%d\n",s);
|
|
}
|
|
return 0;
|
|
}
|