正文
增加 5 行删除 5 行
256 行未改动全部展开2572582592602612622632642651,000 行未改动全部展开12661267126812691270127112721273127450 行未改动13251326132713281329133013311332133374 行未改动140814091410141114121413141414151416160 行未改动全部展开15771578157915801581158215831584158511 行未改动256 行未改动全部展开char recognize(const Image& img){double rate = 0;int idx = -1;Image imgtmp = balance(img); //调整img的位置#ifdef debugcout << "Balancing the input :\n" << imgtmp << endl;#endif // debug1,000 行未改动全部展开{if (img[i][j]){points.push_back({ i, j });}}}for (auto& i : points)50 行未改动}char recognize(const Image& img){double rate = 0;int idx = -1;Image imgtmp = balance(img); //调整img的位置#ifdef debugcout << "Balancing the input :\n" << imgtmp << endl;#endif // debug74 行未改动stk1.push_back(optnum);isd = 0;optnum = 0;}if (stk2.empty()){stk2.push_back(c);}160 行未改动全部展开{//cout << i << endl << endl;tmp2 += recognize(i); //分别对列表中的字符逐一识别,并加到字符串中}#ifndef ONLINE_JUDGEcout << tmp2 << endl << calc(tmp2);#elsecout << calc(tmp2) << endl; //最后调用计算函数,完成计算(一定要加换行符啊!)11 行未改动256 行未改动全部展开2572582592602612622632642651,000 行未改动全部展开12661267126812691270127112721273127450 行未改动13251326132713281329133013311332133374 行未改动140814091410141114121413141414151416160 行未改动全部展开15771578157915801581158215831584158511 行未改动256 行未改动全部展开char recognize(const Image& img){double rate = 0;int idx = -1;Image imgtmp = balance(img); //调整img的位置#ifdef debugcout << "Balancing the input :\n" << imgtmp << endl;#endif // debug1,000 行未改动全部展开{if (img[i][j]){points.push_back({ i, j });}}}for (auto& i : points)50 行未改动}char recognize(const Image& img){double rate = 0;int idx = -1;Image imgtmp = balance(img); //调整img的位置#ifdef debugcout << "Balancing the input :\n" << imgtmp << endl;#endif // debug74 行未改动stk1.push_back(optnum);isd = 0;optnum = 0;}if (stk2.empty()){stk2.push_back(c);}160 行未改动全部展开{//cout << i << endl << endl;tmp2 += recognize(i); //分别对列表中的字符逐一识别,并加到字符串中}#ifndef ONLINE_JUDGEcout << tmp2 << endl << calc(tmp2);#elsecout << calc(tmp2) << endl; //最后调用计算函数,完成计算(一定要加换行符啊!)11 行未改动