// C code for 13677. Azooz Problem code: AZOOZ
#include<stdio.h>
int main()
{
int t,n,i,j,k;
scanf("%d",&t);
for(i=1;i<=t;i++)
{
k=1;
scanf("%d",&n);
k=3*(n*(n+1)/2);
printf("Case #%d: %d\n",i,k);
}
return 0;
}
#include<stdio.h>
int main()
{
int t,n,i,j,k;
scanf("%d",&t);
for(i=1;i<=t;i++)
{
k=1;
scanf("%d",&n);
k=3*(n*(n+1)/2);
printf("Case #%d: %d\n",i,k);
}
return 0;
}
No comments:
Post a Comment