結果
| 問題 | 
                            No.2535 多重同値
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-11-10 22:48:22 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 146 ms / 2,000 ms | 
| コード長 | 238 bytes | 
| コンパイル時間 | 272 ms | 
| コンパイル使用メモリ | 82,432 KB | 
| 実行使用メモリ | 80,640 KB | 
| 最終ジャッジ日時 | 2024-09-26 02:01:40 | 
| 合計ジャッジ時間 | 2,271 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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")