0. 自我介绍 1. 先撕代码 输入 [-1, 0, 1, 1, -1] 输出 所有的1放前面,所有的0放后面。 [1, 1, -1, -1, 0] #include <iostream> #include <vector> using namespace std; void printVector(const vector<int>& nums) { for (int i : nums) { cout << i << " "; } cout << endl; } v...