cswork / OA打开练习工作台

ZipRecruiterOA #10

Fantasy Card Duel

估计中等评测数据准备中,可先阅读题面

考点(AI 标注)模拟/实现

(no statement available)

Constraints

  • 1 ≤ playerDeckA.length ≤ 100
  • 1 ≤ playerDeckA[i] ≤ 10

Example 1

Input:

playerDeckA = [5]
playerDeckB = [2]

Output:

1

Explanation:

Example 2

Input:

playerDeckA = [1, 2]
playerDeckB = [3, 1]

Output:

6

Explanation: Unfortunately, we dont have access to the video explanation they provided..