版本比较
+1 −1增加 1 行删除 1 行
20 行未改动212223242525262728293 行未改动20 行未改动 int l, r; cin >> l >> r; int ans = 0; for(int i = l; i <= r; i ++) { if(__builtin_popcount(i) % 2 == 1) { if(__builtin_popcount(i) % 2 == 1) { ans += i; } } cout << ans;3 行未改动