13 lines
362 B
C
13 lines
362 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
int people[3] = {0};
|
|
for (int i = 0; i < 3; i++) {
|
|
people[i] = 1;
|
|
if ((people[1] == 1 || people[1] == 0) && (people[2] == 1 || people[2] == 0) && (people[2] == 0 || people[2] == 1)) {
|
|
printf("%d %d %d\n", people[0], people[1], people[2]);
|
|
}
|
|
people[i] = 0;
|
|
}
|
|
return 0;
|
|
} |