• 个人简介

    本人致力于恶心死编译器 -->题目传送门

    |下面的是极致恶心的**ac**代码

    #include <bits/stdc++.h>
    
    using namespace std;
    int h, w;
    int main() {
        while(true) {
            cin >> h >> w;
            if (h == 0 && w == 0) break;
            for (int i = 0; i < h; i++) {
                for (int j = 0; j < w; j++) {
                    cout << (i % 2 == 0 ? j % 2 == 0 ? '#' : '.' : j % 2 == 0 ? '.' : '#');
                }
                cout << endl;
            }
            cout << endl;
        }
        return 0;
    }
    
  • 通过的题目

  • 最近活动

    This person is lazy and didn't join any contests or homework.
  • 最近编写的题解

    This person is lazy and didn't write any solutions.
  • Stat

  • Rating

题目标签

搜索
1
深度优先搜索
1
DFS
1
USACO
1