update
This commit is contained in:
parent
83a6f26178
commit
f5b3a1cfcb
@ -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)
|
||||
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
10
P2615/P2615.cpp
Normal 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);
|
||||
|
||||
|
||||
}
|
@ -14,7 +14,7 @@ std::queue<int> 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<<ans<<"\n";
|
||||
cout<<ans<<"\n";
|
||||
}
|
Loading…
Reference in New Issue
Block a user