#3WA求助

P5740 【深基7.例9】最厉害的学生

@[_PluckDuck_](/user/486727) $stu$结构体内的$n$数组开大点就行了
by LYqwq @ 2021-09-25 15:25:42


@\_PluckDuck_ ```n的数据范围在1~1000``` short会爆掉
by HarryPotterJames @ 2021-09-25 15:26:02


顺便说一下,题目中要你开数组的,都多开几个,防止不必要的$WA$,我习惯多开五个
by LYqwq @ 2021-09-25 15:26:30


@[eric888](/user/399116) 三克油
by IaLWH @ 2021-09-25 15:27:08


@[HarryPotterJames](/user/304722) short上限32767来着1000爆不掉
by IaLWH @ 2021-09-25 15:27:59


@[HarryPotterJames](/user/304722) 不会爆啊,看百度: > signed(默认)short i; i可以表示-32768~+32767
by LYqwq @ 2021-09-25 15:28:08


@[_PluckDuck_](/user/486727) @[eric888](/user/399116) 我本机上short是-256~255
by HarryPotterJames @ 2021-09-25 15:29:47


@[HarryPotterJames](/user/304722) 那是一字节,$char$的,可能你的机子时32位的
by LYqwq @ 2021-09-25 15:31:14


~~论字长的重要性~~
by IaLWH @ 2021-09-25 15:35:51


|