Skip to content

Commit 7ef5a5c

Browse files
committed
Remove synchronization for cout cin
1 parent 5a4133b commit 7ef5a5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cpp/minTimetoMakeRope.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class Solution
2424
public:
2525
int minCost(std::string& colors, std::vector<int>& neededTime)
2626
{
27+
std::ios_base::sync_with_stdio(false);
28+
std::cin.tie(NULL);
29+
std::cout.tie(NULL);
30+
2731
int res = 0, currMax = 0;
2832
for(int i=0; i<colors.size(); ++i)
2933
{

0 commit comments

Comments
 (0)