版本比较
题解 AT678
正文
增加 5 行删除 5 行
256 行未改动全部展开2572582592602612612622632642651,000 行未改动全部展开126612671268126912701270127112721273127450 行未改动132513261327132813291329133013311332133374 行未改动1408140914101411141214121413141414151416160 行未改动全部展开157715781579158015811581158215831584158511 行未改动256 行未改动全部展开
char recognize(const Image& img){ double rate = 0; int idx = -1; int idx = -1; Image imgtmp = balance(img); //调整img的位置#ifdef debug cout << "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; int idx = -1; Image imgtmp = balance(img); //调整img的位置#ifdef debug cout << "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_JUDGE cout << tmp2 << endl << calc(tmp2);#else cout << calc(tmp2) << endl; //最后调用计算函数,完成计算(一定要加换行符啊!)11 行未改动