感觉偏水,把稍微难一点的讲一下吧。
一、
T5:小明赢的概率相当于
小学学过,答案是 23\frac{2}{3}32。
T12:我的方法很暴力,分别代入计算。如果有更好的方法,欢迎评论。
二、
(1)
T6:注意最后强转为 int 了。
int
三、
(2)
T3:不需要 +1。第 a[i-1].t 个时刻无法调整。
+1
a[i-1].t
By signing up a MXOJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your MXOJ universal account