結果
| 問題 |
No.1941 CHECKER×CHECKER(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-20 21:25:55 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 2,874 bytes |
| コンパイル時間 | 242 ms |
| コンパイル使用メモリ | 82,376 KB |
| 実行使用メモリ | 52,608 KB |
| 最終ジャッジ日時 | 2024-09-20 07:13:57 |
| 合計ジャッジ時間 | 1,328 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
# from functools import reduce
# def gcd(*numbers):
# return reduce(math.gcd, numbers)
# readline = sys.stdin.readline
# write = sys.stdout.write
# flush = sys.stdout.flush
# sys.setrecursionlimit(500000)
# def input():
# return sys.stdin.readline()[:-1]
mod = 998244353
def sum_range(n):
return n * (n + 1) // 2
def yes(r=True):
if r:
print('Yes')
def yes_exit(r=True):
if r:
print('Yes')
exit()
def no(r=True):
if r:
print('No')
def no_exit(r=True):
if r:
print('No')
exit()
def yes_no(r):
print('Yes' if r else 'No')
def yes_no_exit(r):
print('Yes' if r else 'No')
exit()
# S = input()
# N = int(input())
# H = int(input())
# K = int(input())
# Q = int(input())
# T = int(input())
# W = int(input())
# X = int(input())
# N = input()
# S = input()
S1 = input()
S2 = input()
S3 = input()
# T = input()
# N, K = map(int, input().split())
# N, M = map(int, input().split())
# N, Q = map(int, input().split())
# N, W = map(int, input().split())
# N, X = map(int, input().split())
# H, W = map(int, input().split())
# R, C = map(int, input().split())
# L, R = map(int, input().split())
# a, b = map(int, input().split())
# a, N = map(int, input().split())
# N, X, Y = map(int, input().split())
# N, A, B = map(int, input().split())
# A, B, K = map(int, input().split())
# N, M, K = map(int, input().split())
# V, A, B, C = map(int, input().split())
# A, B, C, D = map(int, input().split())
# A, B, C, X = map(int, input().split())
# N, M, K, S, T, X = map(int, input().split())
# A = list(map(int, input().split()))
# C = list(map(int, input().split()))
# H = list(map(int, input().split()))
# T = list(map(int, input().split()))
# P = list(map(lambda x: int(x) - 1, input().split()))
# S = input()
# Q = int(input())
# A = input().split()
# S = input().split()
# T = input().split()
# N = list(input())
# S = list(input())
# X = [int(input()) for _ in range(N)]
# X = [int(input()) for _ in range(Q)]
# A = [input().split() for _ in range(N)]
# A = [list(map(int, input().split())) for _ in range(N)]
# A = [list(map(int, input().split())) for _ in range(H)]
# G = [list(map(int, input().split())) for _ in range(M)]
# querys = [list(map(int, input().split())) for _ in range(Q)]
# querys = [input() for _ in range(Q)]
# T = [list(map('.#'.index, input())) for _ in range(H)]
# S = list(map('LR'.index, input()))
# S = list(map('ULR'.index, input()))
def main():
# import collections
# import math
# import queue
# import random
# import copy
# import sys
pass
v = ""
for S in [S1, S2, S3]:
t = ""
if v == S[0]:
no()
return
v = S[0]
for s in S:
if t == s:
no()
return
t = s
yes()
if __name__ == "__main__":
main()