文章目录 code1 22分 code2 25分 code1 22分 #include<iostream> using namespace std; int main() { int m, n, flag = 0; while (cin >> m >> n) { if (n != 0) {