关于1e6

学术版

你不给代码我怎么知道。
by Sprague_Garundy @ 2022-09-26 17:33:23


@[Sprague_Garundy](/user/764746) 不是,就是有时候用开二维数组会报错
by Joseph__Joestar @ 2022-09-26 17:37:04


一般都会报错,就别用浮点数开。 如果是 `const int N=1e6;int a[N];` 就先转化成了 `int` 再开,就是对的
by cyffff @ 2022-09-26 17:39:20


@[Joseph__Joestar](/user/723517) 你要是二维数组两维都开 1e6 空间爆了当然 CE。
by Sprague_Garundy @ 2022-09-26 17:45:16


``` int a[1e6]; //错误 ------ int a[(int)1e6]; //正确 ------ const int N=1e6; int a[N]; //正确 ```
by A_Noob @ 2022-09-26 17:45:46


@[Joseph__Joestar](/user/723517) 二维数组开1e6太大了不行
by CH_mengxiang @ 2022-09-26 17:51:00


谢谢大家
by Joseph__Joestar @ 2022-09-26 22:38:06


|