核心代码
// 根据余数判断是打渔还是晒网 if (remainder >= 1 && remainder <= 3) { cout << "Fishing" << endl; } else { cout << "Lying" << endl; } return 0; }