1.2 借书方案知多少
include<bits/stdc++.h> //万能开头
using namespace std;
#define int long long //防止爆 int
int n;
signed main(){
int i=0;
for(int a=1;a<=5;a++){
for(int b=1;b<=5;b++){
if(a!=b) //前两比较减少计算量
for(int c=1;c<=5;c++){
if(a!=b&&b!=c&&a!=c){
i++;
cout<<"A:"<<a<<" B:"<<b<<" C:"<<c<<endl;
if(i%4==0)
cout<<\n<<endl;
}
}
}
}
}
标签:cout,int,每日,long,&&,打卡 From: https://www.cnblogs.com/poemgranate/p/17334502.html