mirror of
https://github.com/xlucn/PAT.git
synced 2026-02-06 19:12:14 +08:00
13 lines
162 B
C
13 lines
162 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
char string[4];
|
|
|
|
while (scanf("%s", string) != EOF)
|
|
if (string[2] == 'T')
|
|
putchar("1234"[string[0] - 'A']);
|
|
|
|
return 0;
|
|
}
|