DNA

1,打眼一看确实是每咋懂的。

咋感觉跟中学那找规律那题。。。

2,鸡眼数学题。。

TM的还得用老办法估计

3,我着实每想到这个行数还会有。。。坑。

4,我还说人家蠢,原来是我蠢。。

这人猛呆了,也不知道暗合什么天机。。。

输出又有要求简直处处是坑。

#include<iostream>
#include<algorithm>
using namespace std;
int o,i,k;
int main(){
    cin>>o;
    while(o--)
    {
        cin>>i>>k;
        int c=1;
        int d=0;
        for(int a=1;a<=(i-1)*k+1;a++)
        {
            for(int b=1;b<=i;b++)
            {
                if(b==c||b==i+1-c)
                    cout<<"X";
                else 
                    cout<<" ";
            }  
            c++;
            if(c>i) c=c-i+1;
            cout<<endl;     
        }
        cout<<endl;
    }
    return 0;
}

这个东西和算法有关系吗??????

宝贵的时间经历就不放这里了

原文地址:https://www.cnblogs.com/beiyueya/p/12260360.html