Skip to content

Commit

Permalink
gui细节调整(添加秒)
Browse files Browse the repository at this point in the history
  • Loading branch information
王永瑶 committed Mar 19, 2023
1 parent 062c68e commit 3204665
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,6 @@ void circle_max(int n,int x,vector<vector<int> > g,vector<string> str,
}
return;
}
if(vis[x]==1)
return;
if(ban.find(str[x][0])!=ban.end())
return;
vis[x]=1;
Expand Down Expand Up @@ -305,8 +303,6 @@ int gen_chain_word(char* words[], int len, char* result[], char head, char tail,
}
vector<string> ans=get_max(sz,g,all_str,0,head,tail,ban);
int cnt=0;
if(ans.size()==1)
return 0;
for(auto x:ans)
{
result[cnt]=new char[x.size()*sizeof(int)];
Expand Down Expand Up @@ -343,8 +339,6 @@ int gen_chain_char(char* words[], int len, char* result[],char head, char tail,c
vis=vector<int>(sz,0);
circle_max(sz,-1,g,all_str,1,head,tail,ban);
int cnt=0;
if(ans_circle.size()==1)
return 0;
for(auto x:ans_circle)
{
result[cnt]=new char[x.size()*sizeof(int)];
Expand All @@ -363,8 +357,6 @@ int gen_chain_char(char* words[], int len, char* result[],char head, char tail,c
return -3;
}
vector<string> ans=get_max(sz,g,all_str,1,head,tail,ban);
if(ans.size()==1)
return 0;
int cnt=0;
for(auto x:ans)
{
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void print_ans(int len,char* result[],int operate)
fout.close();
}

int main(int argc,char* argv[])
int test_main(int argc,char* argv[])
{
char* words[20010];
char* result[20010];
Expand Down

0 comments on commit 3204665

Please sign in to comment.