mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
22 lines
458 B
C++
22 lines
458 B
C++
|
#include <stdio.h>
|
||
|
#include <string.h>
|
||
|
#include <algorithm>
|
||
|
using namespace std;
|
||
|
int main()
|
||
|
{
|
||
|
char str[20][10] = {"#","I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"};
|
||
|
char s[10];
|
||
|
int i,cas = 1;
|
||
|
while(~scanf("%s",s))
|
||
|
{
|
||
|
for(i = 1;i<=12;i++)
|
||
|
{
|
||
|
if(strcmp(s,str[i])==0)
|
||
|
{
|
||
|
printf("Case %d: %d\n",cas++,i);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return 0;
|
||
|
}
|