結果
問題 | No.2535 多重同値 |
ユーザー |
|
提出日時 | 2023-11-10 21:55:42 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 136 ms / 2,000 ms |
コード長 | 239 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 83,328 KB |
最終ジャッジ日時 | 2024-09-26 01:27:08 |
合計ジャッジ時間 | 2,234 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
from itertools import accumulatefrom operator import xorN = int(input())flag = 0P = [int(input() == "No") for _ in range(N)]cum = list(accumulate(P, xor))for c in cum:if c:print("No")else:print("Yes")