OJ-Problems-Source/HDOJ/1249_autoAC.cpp
2016-08-13 17:16:08 +08:00

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;
}