refactor: 移除调试打印代码并清理多余空行

This commit is contained in:
Zengtudor 2025-09-23 15:59:15 +08:00
parent f8b4831d7b
commit 07aecbac0e

View File

@ -5,7 +5,6 @@
#include <vector> #include <vector>
using namespace std; using namespace std;
class Solution { class Solution {
public: public:
struct Version{ struct Version{
@ -29,10 +28,10 @@ public:
v.push_back( v.push_back(
atoi(str.substr(p).c_str()) atoi(str.substr(p).c_str())
); );
for(auto i:v){ // for(auto i:v){
printf("%d ",i); // printf("%d ",i);
} // }
printf("\n"); // printf("\n");
} }
inline bool operator<(const Version&other)const{ inline bool operator<(const Version&other)const{
for(int i=0;i<max(v.size(),other.v.size());i++){ for(int i=0;i<max(v.size(),other.v.size());i++){