Hello! Today I'm going to show you how to incwease stacc 📒 size in some various opewating systems ( ^◡^) ↵
I'm sowwy if my engwish is bad (⁄ ⁄>⁄ω⁄<⁄ ⁄)⁄↵
↵
## u awe using Mac ⌘ ૮ ˶ᵔ ᵕ ᵔ˶ ა↵
↵
I used mac for my internship for several months and I used to compile C++ using mac. 🌿↵
↵
Mac iws a bit wetawded bcuzz its weawwy hawd to set up `#include <bits/stdc++.h>`↵
↵
<spoiler summary="Mac">↵
~~~~~↵
g++ -Wl,-stack_size,0x20000000 solution.cpp -o solution↵
~~~~~↵
</spoiler>↵
↵
will incwease the stacc size to 512MB 💙, (the hexadecimal is in bytes)↵
↵
Hmppfff... It seems like there are no ways to increase more than that. Deploy uwsewf an AWS or GCP micwo VM instance.. (.﹒︣︿﹒︣.)↵
↵
## u awe using Windows ૮₍ ˃ ⤙ ˂ ₎ა↵
↵
<spoiler summary="Windows">↵
~~~~~↵
g++ -Wl,--stack,1073741824 solution.cpp -o solution↵
~~~~~↵
</spoiler>↵
↵
will incwease the stacc size to 1GB 💙, (the decimal is in bytes)↵
↵
↵
↵
## u awe using any winux wistwibution ฅ՞•ﻌ•՞ฅ ↵
↵
<spoiler summary="Winux">↵
~~~~~↵
ulimit -s 1048576↵
g++ solution.cpp -o solution↵
~~~~~↵
</spoiler>↵
↵
🐧 will incwease the stacc size to 1GB 💙, (the decimal is in kiwobytes)↵
↵
Uwpu uwpudeitooo~!↵
U can eidd this wunction in uw `~/.bashewc` wike thiws↵
↵
<spoiler summary="bashrc">↵
~~~~~↵
runcpp() {↵
(ulimit -v 4194304; ulimit -s 4194304; ./$1)↵
}↵
~~~~~↵
</spoiler>↵
↵
and can dooooo:↵
```↵
runcpp B < input.txt > out.txt↵
```
I'm sowwy if my engwish is bad (⁄ ⁄>⁄ω⁄<⁄ ⁄)⁄↵
↵
## u awe using Mac ⌘ ૮ ˶ᵔ ᵕ ᵔ˶ ა↵
↵
I used mac for my internship for several months and I used to compile C++ using mac. 🌿↵
↵
Mac iws a bit wetawded bcuzz its weawwy hawd to set up `#include <bits/stdc++.h>`↵
↵
<spoiler summary="Mac">↵
~~~~~↵
g++ -Wl,-stack_size,0x20000000 solution.cpp -o solution↵
~~~~~↵
</spoiler>↵
↵
will incwease the stacc size to 512MB 💙, (the hexadecimal is in bytes)↵
↵
Hmppfff... It seems like there are no ways to increase more than that. Deploy uwsewf an AWS or GCP micwo VM instance.. (.﹒︣︿﹒︣.)↵
↵
## u awe using Windows ૮₍ ˃ ⤙ ˂ ₎ა↵
↵
<spoiler summary="Windows">↵
~~~~~↵
g++ -Wl,--stack,1073741824 solution.cpp -o solution↵
~~~~~↵
</spoiler>↵
↵
will incwease the stacc size to 1GB 💙, (the decimal is in bytes)↵
↵
↵
↵
## u awe using any winux wistwibution ฅ՞•ﻌ•՞ฅ ↵
↵
<spoiler summary="Winux">↵
~~~~~↵
ulimit -s 1048576↵
g++ solution.cpp -o solution↵
~~~~~↵
</spoiler>↵
↵
🐧 will incwease the stacc size to 1GB 💙, (the decimal is in kiwobytes)↵
↵
Uwpu uwpudeitooo~!↵
U can eidd this wunction in uw `~/.bashewc` wike thiws↵
↵
<spoiler summary="bashrc">↵
~~~~~↵
runcpp() {↵
(ulimit -v 4194304; ulimit -s 4194304; ./$1)↵
}↵
~~~~~↵
</spoiler>↵
↵
and can dooooo:↵
```↵
runcpp B < input.txt > out.txt↵
```