結果
| 問題 |
No.2535 多重同値
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-10 21:36:05 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 120 ms / 2,000 ms |
| コード長 | 457 bytes |
| コンパイル時間 | 1,823 ms |
| コンパイル使用メモリ | 195,736 KB |
| 最終ジャッジ日時 | 2025-02-17 20:30:35 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int N; cin >> N;
vector<bool> T(N);
for(int i=0; i<N; i++){
string s; cin >> s;
if(s == "Yes") T.at(i) = true;
}
vector<bool> answer(N);
int now = 1;
for(int i=0; i<N; i++){
if(T.at(i) == false) now++;
if(now%2) cout << "Yes" << endl;
else cout << "No" << endl;
}
}