blob: 430782aaf8e8175b64d2c5a88c3e89dd1be6897a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <stdio.h>
int main()
{
int n, b, j, k;
scanf("%d", &n);
for (int i = 0; i < n; ++i) {
scanf("%d %d %d", &b, &j, &k);
if (b)
printf("%c -> $\n", 'S' + i);
printf("%c -> 0%c\n%c -> 1%c\n", i+83, j+83, i+83, k+83);
}
return 0;
}
|