1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-12 17:05:15 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2025-09-29 14:43:44 +08:00
parent 2862a227c4
commit 13f2098086
4409 changed files with 168933 additions and 166256 deletions

View File

@@ -17,8 +17,6 @@ id 是这张表的主键(具有唯一值的列)。
status 是一个表示行程状态的枚举类型,枚举成员为(completed, cancelled_by_driver, cancelled_by_client) 。
</pre>
<p>&nbsp;</p>
<div class="original__bRMd">
<div>
<p>表:<code>Users</code></p>
@@ -38,11 +36,9 @@ users_id 是这张表的主键(具有唯一值的列)。
banned 是一个表示用户是否被禁止的枚举类型,枚举成员为 (Yes, No) 。
</pre>
<p>&nbsp;</p>
<p><strong>取消率</strong> 的计算方式如下:(被司机或乘客取消的非禁止用户生成的订单数量) / (非禁止用户生成的订单总数)。</p>
<p>编写解决方案找出&nbsp;<code>"2013-10-01"</code><strong>&nbsp;</strong>&nbsp;<code>"2013-10-03"</code><strong>&nbsp;</strong>期间非禁止用户(<strong>乘客和司机都必须未被禁止</strong>)的取消率。非禁止用户即 banned 为 No 的用户,禁止用户即 banned 为 Yes 的用户。其中取消率 <code>Cancellation Rate</code> 需要四舍五入保留 <strong>两位小数</strong></p>
<p>编写解决方案找出&nbsp;<code>"2013-10-01"</code><strong>&nbsp;</strong>&nbsp;<code>"2013-10-03"</code><strong>&nbsp;</strong>期间&nbsp;<strong>至少&nbsp;</strong>一次行程的非禁止用户(<strong>乘客和司机都必须未被禁止</strong>)的 <strong>取消率</strong>。非禁止用户即 banned 为 No 的用户,禁止用户即 banned 为 Yes 的用户。其中取消率 <code>Cancellation Rate</code> 需要四舍五入保留 <strong>两位小数</strong></p>
<p>返回结果表中的数据 <strong>无顺序要求</strong></p>