結果

問題 No.2535 多重同値
ユーザー mattu34mattu34
提出日時 2023-11-11 18:31:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 668 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 76,856 KB
最終ジャッジ日時 2023-11-11 18:31:32
合計ジャッジ時間 2,562 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
55,604 KB
testcase_01 AC 40 ms
55,604 KB
testcase_02 AC 42 ms
55,604 KB
testcase_03 AC 40 ms
55,604 KB
testcase_04 WA -
testcase_05 AC 39 ms
55,604 KB
testcase_06 AC 39 ms
55,604 KB
testcase_07 AC 43 ms
55,604 KB
testcase_08 AC 55 ms
55,604 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
import sys
import heapq
import bisect
import itertools

dxdy1 = ((0, 1), (0, -1), (1, 0), (-1, 0))
dxdy2 = ((0, 1), (0, -1), (1, 0), (-1, 0), (1, 1), (-1, -1), (1, -1), (-1, 1))
dxdy3 = ((0, 1), (1, 0))
dxdy4 = ((1, 1), (1, -1), (-1, 1), (-1, -1))
INF = float("inf")
MOD = 998244353
mod = 998244353
MOD2 = 10**9 + 7
mod2 = 10**9 + 7
# memo : len([a,b,...,z])==26

input = lambda: sys.stdin.readline().rstrip()
mi = lambda: map(int, input().split())
li = lambda: list(mi())

N = int(input())
P = [input() == "Yes" for _ in range(N)]
ok = True
for p in P:
    if p and ok:
        print("Yes")
    else:
        print("No")
        ok = False

0