結果
| 問題 | No.2535 多重同値 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-10 22:48:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 170 ms / 2,000 ms |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 364 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 85,248 KB |
| 最終ジャッジ日時 | 2026-04-13 04:40:25 |
| 合計ジャッジ時間 | 2,824 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
n = int(input())
xor = 0
P = [input() for i in range(n)]
xor = 1 if P[0] == "Yes" else 0
print("Yes" if xor else "No")
for i in range(1,n):
nex = 1 if P[i] == "Yes" else 0
xor = int(xor == nex)
print("Yes" if xor else "No")