cswork / OA打开练习工作台

StripeOA #10

Card Range Obfuscation Part 3 (ML Eng :)

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

考点(AI 标注)前缀和区间字符串

Hi there! The description you are currently reading is just 2^nd part of the problem set. It is highly recommended to read ALL THE PARTS before coding as parts may build on top of each other

  • Card Range Obfuscation Part 1 (ML Eng :)
  • Card Range Obfuscation Part 2 (ML Eng :)
  • Card Range Obfuscation Part 3 (ML Eng :)
  • Card Range Obfuscation Part 4 (ML Eng :) Part 3 For the third set of testcasds, the input may contain intervals that are proper subsets of other intervals. When extending an interval to cover a gap, you should only extend the covering interval. This will be sufficient to solve the next 2 testcases. Unfortunately, this is all the information we currently have about Part 3. To ensure successful uploading, the example input and output provided are just placeholders. I hope they still help you grasp the overall problem set. Thank you so much for your understanding and support!

Example 1

Input:

BIN = 424242
N = 2
info = [["0000000000", "5999999999", "VISA"]]

Output:

[["4242420000000000", "4242429999999999", "VISA"]]

Explanation: Example 1: the first VISA interval and second CB interval are extended (this statement originates from Part 3) Input & output are just placeholders :)