第一题: #include <iostream> using namespace std; int main(){ int T; cin >> T; for(int t = 0; t < T; t++){ &...