⌨️

[AtCoder]ABC-264|B - Nice Grid

に公開

設問ページ

提出結果

def getIntMap():
    return map(int, input().split())


def main():
    r, c = getIntMap()

    d = max(abs(r - 8), abs(c - 8))

    print('white' if d % 2 == 0 else 'black')


if __name__ == "__main__":
    main()

Discussion