题解:P7017 [CERC2013] Digraphs

· · 题解

P7017 [CERC2013] Digraphs "诈骗题"

观察题面可发现要求不包含任何一个有向“字母”对。注意,是字母对,那我们就可以输出不是字母的的字符方阵,轻松 AC~

贴上代码:

#include<bits/stdc++.h> using namespace std;
int main(){
    int T; cin>>T;
    while(T--) for(int i=1;i<=20;i++) puts("````````````````````");
    return 0;
}