1. 正直者、欺诈者简单模拟即可. #include <iostream> #include <string> using namespace std; int main() { int n; string s; cin >> n >> s; int q; cin >> q; int x, y; while(q--){ cin >> x >> y; x = x-1, y = y-1; if(s[x] == 'H'){...