文章
19
粉丝
0
获赞
4
访问
11.4k
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int sum = 0;
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
for (int k = 0; k < n; k++) {
if (i != j && i != k && j != k) {
sum++;
cout << "A:" << i+1 << " B:" << j+1 << " C:" << k+1 << endl;
}
}
 ...
登录后发布评论
暂无评论,来抢沙发