F.A.Qs Home ProblemSet Status Ranklist Contest LoginRegister
Notice:1:注册本OJ方式请见https://www.lydsy.com/JudgeOnline/wttl/thread.php?tid=5671 2:请不要在讨论区中发空白主题帖。
大视野在线测评-欢迎您
[ New Thread ]
Problem 1272 >> 特判n=0
cmd2001 @ 2018-04-10 19:59:10
[ Quote ] [ Edit ] [ Delete ] 1#
插板法无法处理插0个板的情况......
所以要特判n=0。
因为这题可以不选,所以if(!n) return puts("1"),0;
否则会WA,因为有一组数据为:0 0 10000 7
Edwardfrog @ 2018-04-12 07:09:38
[ Quote ] [ Edit ] [ Delete ] 2#
顶回去
strangers @ 2018-06-01 13:41:05
[ Quote ] [ Edit ] [ Delete ] 3#
顶回去
[Top] [Previous Page] [Next Page]

HOME Back