You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int cnt = 0;
|
|
for (int i = 1; i <= 4; i++)
|
|
for (int j = 1; j <= 4; j++)
|
|
for (int k = 1; k <= 4; k++)
|
|
if (i != j && i != k && k != j) {
|
|
cnt++;
|
|
printf("%d%d%d\n", i, j, k);
|
|
}
|
|
printf("%d\n",cnt);
|
|
return 0;
|
|
} |