結果
| 問題 |
No.2535 多重同値
|
| コンテスト | |
| ユーザー |
mattu34
|
| 提出日時 | 2023-11-11 18:31:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 668 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 82,580 KB |
| 実行使用メモリ | 77,556 KB |
| 最終ジャッジ日時 | 2024-09-26 02:50:14 |
| 合計ジャッジ時間 | 1,866 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 12 |
ソースコード
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
mattu34