mirror of
https://gitcode.com/Zengtudor/alg2025.git
synced 2025-12-17 12:43:06 +00:00
refactor: 移除调试打印代码并清理多余空行
This commit is contained in:
parent
f8b4831d7b
commit
07aecbac0e
@ -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++){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user