ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2132. Graph Decomposition. Version 2

Increase the stack size in rust at runtime:
Posted by ixiolirion 4 Feb 2023 11:17
const STACK_SIZE: usize = 128 * 1024 * 1024;

fn run() {
    //...
}

fn main() {
    let child = std::thread::Builder::new()
        .stack_size(STACK_SIZE)
        .spawn(run)
        .unwrap();
    child.join().unwrap();
}