版本比较
题解:P15186 [SWERC 2019] Ants
正文
增加 4 行删除 4 行
12 行未改动131415161717181919202121222323242526272 行未改动12 行未改动```cppfor (int i = 0; i < n; i++) { string s; cin >> s;
if (s[0] == '-') continue;
if (s.length() > 7) continue;
long long x = stoll(s);
if (x >= 0 && x <= 2000000) { seen[x] = true; cnt++; }2 行未改动