mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
20 lines
338 B
C++
20 lines
338 B
C++
|
#include<stdio.h>
|
||
|
#include<stdlib.h>
|
||
|
int main()
|
||
|
{
|
||
|
int t, n, re, i;
|
||
|
scanf("%d", &t);
|
||
|
for(i=1; i<=t; i++)
|
||
|
{
|
||
|
scanf("%d", &n);
|
||
|
if(n==1)
|
||
|
re=1;
|
||
|
else if(n==2)
|
||
|
re=2;
|
||
|
else
|
||
|
re=2*n-4;
|
||
|
printf("Case %d: %d\n", i, re);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|