結果

問題 No.1941 CHECKER×CHECKER(1)
ユーザー siganaisiganai
提出日時 2022-05-20 21:42:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 652 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 81,772 KB
実行使用メモリ 63,496 KB
最終ジャッジ日時 2023-10-20 12:08:24
合計ジャッジ時間 1,847 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
63,496 KB
testcase_01 AC 58 ms
63,496 KB
testcase_02 AC 59 ms
63,496 KB
testcase_03 AC 55 ms
63,496 KB
testcase_04 AC 56 ms
63,496 KB
testcase_05 AC 55 ms
63,496 KB
testcase_06 AC 56 ms
63,496 KB
testcase_07 AC 56 ms
63,496 KB
testcase_08 AC 55 ms
63,496 KB
testcase_09 AC 57 ms
63,496 KB
testcase_10 AC 55 ms
63,496 KB
testcase_11 AC 56 ms
63,496 KB
testcase_12 AC 55 ms
63,496 KB
testcase_13 AC 56 ms
63,496 KB
testcase_14 AC 56 ms
63,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env PyPy3

from collections import Counter, defaultdict, deque
import itertools
import re
import math
from functools import reduce
import operator
import bisect
from heapq import *
import functools
mod=998244353

import sys
input=sys.stdin.readline
s=[input().rstrip() for _ in range(3)]
if s[0][0] == s[0][1]:
    print('No')
else:
    for i in range(3):
        for j in range(3):
            if (i + j) % 2:
                if s[i][j] != s[0][1]:
                    print('No')
                    exit()
            else:
                if s[i][j] != s[0][0]:
                    print('No')
                    exit()
    print('Yes')
0