This commit is contained in:
Zengtudor 2024-08-30 18:19:48 +08:00
parent c1dc73f772
commit 448a747e56
4 changed files with 3 additions and 4 deletions

View File

@ -15,7 +15,7 @@ bool is_huiwen(int n){
ss<<std::oct<<n;
string bjz(ss.str());
int j=bjz.size()-1;
for(int i=0;i<bjz.size();++i,--j){
for(int i=0;i<(int)bjz.size();++i,--j){
if(bjz[i]!=bjz[j]){
return false;
}

View File

@ -2,7 +2,7 @@
using namespace std;
int m[10][10];
bool h_is_used[10][10],l_is_used[10][10],t_is_used[4][4][10];
bool h_is_used[10][10],l_is_used[10][10],t_is_used[5][5][10];
#ifdef OI
#define DB(code){code}

View File

@ -30,7 +30,7 @@ int main(){
}
}
int ans{0};
int ans{-1};
for(int i=1;i<=n;i++){
if(in_degree[i]!=0 && vis[i]==false){

View File

@ -17,7 +17,6 @@ int main(){
in_degree[input]++;
next[i]=input;
}
int zero_in_degree_dir = -1;
int cnt{};
for(int i=1;i<=n;i++){
if(in_degree[i]==0){