This commit is contained in:
Zengtudor 2024-10-01 21:38:46 +08:00
parent 83a6f26178
commit f5b3a1cfcb
3 changed files with 15 additions and 3 deletions

View File

@ -18,4 +18,6 @@ project(alogrithm_2024)
add_executable(P1031 ${CMAKE_CURRENT_LIST_DIR}/P1031/main.cpp) add_executable(P1031 ${CMAKE_CURRENT_LIST_DIR}/P1031/main.cpp)
add_executable(P1031_pro ${CMAKE_CURRENT_LIST_DIR}/P1031/pro.cpp) add_executable(P1031_pro ${CMAKE_CURRENT_LIST_DIR}/P1031/pro.cpp)
add_executable(P2661 ${CMAKE_CURRENT_LIST_DIR}/P2661/main.cpp) add_executable(P2661 ${CMAKE_CURRENT_LIST_DIR}/P2661/main.cpp)
add_executable(P2615 ${CMAKE_CURRENT_LIST_DIR}/P2615/P2615.cpp)

10
P2615/P2615.cpp Normal file
View File

@ -0,0 +1,10 @@
#include <iostream>
#include <istream>
using std::cin,std::cout;
int main(){
std::iostream::sync_with_stdio(false),cin.tie(0),cout.tie(0);
}

View File

@ -14,7 +14,7 @@ std::queue<int> q;
int ans; int ans;
int main(){ int main(){
std::iostream::sync_with_stdio(false),cin.tie(0),cout.tie(0); std::iostream::sync_with_stdio(false),cin.tie(nullptr),cout.tie(nullptr);
std::cin>>n; std::cin>>n;
for(int i=1;i<=n;i++){ for(int i=1;i<=n;i++){
@ -49,5 +49,5 @@ int main(){
}while(now!=start); }while(now!=start);
ans=std::max(ans,loop_size); ans=std::max(ans,loop_size);
} }
std::cout<<ans<<"\n"; cout<<ans<<"\n";
} }