正文
增加 3 行删除 3 行
182 行未改动全部展开183184185186187188189190191192193194195299 行未改动全部展开182 行未改动全部展开mp[j][i + n / 2] = (2 * i - 2) * m + j;swap(n, m);}else if (n == 2 && m == 2){ cout << -1 << '\n'; continue; }else if (n == 2 && m == 3){ cout << -1 << '\n'; continue; }else if (n == 3 && m == 2){ cout << -1 << '\n'; continue; }else{cout << "1\n";cout << "1 2 6\n";299 行未改动全部展开182 行未改动全部展开183184185186187188189190191192193194195299 行未改动全部展开182 行未改动全部展开mp[j][i + n / 2] = (2 * i - 2) * m + j;swap(n, m);}else if (n == 2 && m == 2){ cout << -1 << '\n'; continue; }else if (n == 2 && m == 3){ cout << -1 << '\n'; continue; }else if (n == 3 && m == 2){ cout << -1 << '\n'; continue; }else{cout << "1\n";cout << "1 2 6\n";299 行未改动全部展开