注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
第一道:
In a cloud computing platform, there are n virtual machine (VM) types. The number of available instances for each type is given in mStock.
Each customer rents exactly one VM:
? The price paid is the current available instance count of the chosen VM type at that moment.
? Customers arrive one by one (m customers total).
? Each customer always selects the VM type that is currently most expensive, meaning the type with the higheste the middle 'a' (I change)
Constraints
? 1sns 100
? 2s length of wordsil ≤ 105
? Each letter of wordsli is in the range ascila-21.
Test Case Input Format
The first line contains an integer n.
The next m lines contain a string element of words |