跳到正文

题解

题目 P15893

存档题解 3 篇按获赞排序

在洛谷打开

题解

  1. 0 赞

    题解:P15893 [TOPC 2025] Take It or Double It

    题目传送门 思路 当前为 x 美元,那么选择 double it 后的钱chao'guo'le 会变为 2x。 如果选择 double it 后的钱超过了 d,即 2x > d,输出 take it。 反之,输出 double it。 AC CODE