显示原始代码
#include <stdio.h>
int main() {
long a, b, c;
char str1, str2, str3;
gets(a);
gets(b);
gets(c);
if (a % 4 == 0)
str1 = "L";
else if (a % 4 == 1)
str1 = "X";
else if (a % 4 == 2)
str1 = "T";
else if (a % 4 == 3)
str1 = "W";
if (b % 4 == 0)
str2 = "L";
else if (b % 4 == 1)
str2 = "X";
else if (b % 4 == 2)
str2 = "T";
else if (b % 4 == 3)
str2 = "W";
if (c % 4 == 0)
str3 = "L";
else if (c % 4 == 1)
str3 = "X";
else if (c % 4 == 2)
str3 = "T";
else if (c % 4 == 3)
str3 = "W";
printf("%c%c%c", &str1, &str2, &str3);
return 0;
}