OJ-Problems-Source/HDOJ/1249_autoAC.cpp

14 lines
196 B
C++
Raw Normal View History

2016-08-13 17:16:08 +08:00
#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;
}