diff --git a/CMakeLists.txt b/CMakeLists.txt index 85ca2c3..1e500f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,4 +18,6 @@ project(alogrithm_2024) add_executable(P1031 ${CMAKE_CURRENT_LIST_DIR}/P1031/main.cpp) add_executable(P1031_pro ${CMAKE_CURRENT_LIST_DIR}/P1031/pro.cpp) -add_executable(P2661 ${CMAKE_CURRENT_LIST_DIR}/P2661/main.cpp) \ No newline at end of file +add_executable(P2661 ${CMAKE_CURRENT_LIST_DIR}/P2661/main.cpp) + +add_executable(P2615 ${CMAKE_CURRENT_LIST_DIR}/P2615/P2615.cpp) \ No newline at end of file diff --git a/P2615/P2615.cpp b/P2615/P2615.cpp new file mode 100644 index 0000000..f25f159 --- /dev/null +++ b/P2615/P2615.cpp @@ -0,0 +1,10 @@ +#include +#include + +using std::cin,std::cout; + +int main(){ + std::iostream::sync_with_stdio(false),cin.tie(0),cout.tie(0); + + +} \ No newline at end of file diff --git a/P2661/main.cpp b/P2661/main.cpp index b1c16e5..afb4612 100644 --- a/P2661/main.cpp +++ b/P2661/main.cpp @@ -14,7 +14,7 @@ std::queue q; int ans; 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; for(int i=1;i<=n;i++){ @@ -49,5 +49,5 @@ int main(){ }while(now!=start); ans=std::max(ans,loop_size); } - std::cout<