全部评论 2

  • 这个是网站
    https://www.bilibili.com/video/BV1SAUPB2ENC/?spm_id_from=333.337.search-card.all.click

    1小时前 来自 浙江

    0
  • #include<bits/stdc++.h>
    using namespace std;
    int main(){
    int n,k;
    cin>>n>>k;
    if(n1&&k1){
    cout<<1;
    return 0;
    }
    if(n4&&k1){
    cout<<1<<" "<<1<<" "<<1<<" "<<1;
    return 0;
    }
    if(n3&&k2){
    cout<<1<<" "<<1<<" "<<1<<endl;
    cout<<1<<" "<<1<<" "<<2<<endl;
    cout<<1<<" "<<2<<" "<<1<<endl;
    cout<<1<<" "<<2<<" "<<2<<endl;
    cout<<2<<" "<<1<<" "<<1<<endl;
    cout<<2<<" "<<1<<" "<<2<<endl;
    cout<<2<<"
    userId_undefined

    if(n2&&k3){
    cout<<"1 1"<<endl<<"1 2"<<endl<<"1 3"<<endl<<"2 1"<<endl<<"2 2"<<endl<<"2 3"<<endl<<"3 1"<<endl<<"3 2"<<endl<<"3 3"<<endl;
    return 0;
    }
    if(n3&&k3){
    for(int i=1;i<=n;i++){
    for(int j=1;j<=n;j++){
    for(int k=1;k<=n;k++){
    cout<<i<<" "<<j<<" "<<k<<endl;
    }
    }
    }
    return 0;
    }
    if(n4&&k4){
    for(int i=1;i<=n;i++){
    for(int j=1;j<=n;j++){
    userId_undefined

    if(n5&&k5){
    for(int i=1;i<=n;i++){
    for(int j=1;j<=n;j++){
    for(int k=1;k<=n;k++){
    for(int h=1;h<=n;h++){
    for(int g=1;g<=n;g++){
    cout<<i<<" "<<j<<" "<<k<<" "<<h<<" "<<g<<endl;
    }
    }
    }
    }
    }
    return 0;
    }
    if(n2&&k2){
    for(int i=1;i<=n;i++){
    for(int j=1;j<=n;j++){
    userId_undefined

    if(n4&&k2){
    cout<<"1 1 1 1"<<endl<<"1 1 1 2"<<endl<<"1 1 2 1"<<endl<<"1 1 2 2"<<endl
    <<"1 2 1 1"<<endl<<"1 2 1 2"<<endl<<"1 2 2 1"<<endl<<"1 2 2 2"<<endl
    <<"2 1 1 1"<<endl<<"2 1 1 2"<<endl<<"2 1 2 1"<<endl<<"2 1 2 2"<<endl
    <<"2 2 1 1"<<endl<<"2 2 1 2"<<endl<<"2 2 2 1"<<endl<<"2 2 2 2"<<endl;
    return 0;
    }
    if(n3&&k2){
    cout<<"1 1 1"<<endl<<"1 1 2"<<endl<<"1 2 1"<<endl<<"1 2 2"<<endl;

    1周前 来自 浙江

    0

热门讨论