给出以下输入之一:
AK,AR,AS,AZ,CA,CT,DC,FL,GA,IL,IN,IA,KS,KY,LA,MD,MI,MN,MS,NV,NH,NJ,NM,NY,NC,ND,MP,OH,OK,OR,PA,PR,RI,SC,TN,TX,UT,VT,VA,WA,WI
(带引号)
"AK","AR","AS","AZ","CA","CT","DC","FL","GA","IL","IN","IA","KS","KY","LA","MD","MI","MN","MS","NV","NH","NJ","NM","NY","NC","ND","MP","OH","OK","OR","PA","PR","RI","SC","TN","TX","UT","VT","VA","WA","WI"
生成并输出与输入匹配的格式的(均匀)随机车牌。如果有多种(逗号分隔)格式,请使用(均匀)随机格式:
AK, IA, MS, MP, VT: AAA 000
AS: 0000
AZ, GA, WA: AAA0000
AR, KS, KY, LA, ND, OR: 000 AAA
CA: 0AAA000
CT: AA-00000
DC: AA-0000
FL: AAA A00
IL: AA 00000
IN: 000A,000AA,000AAA,AAA000
MD: 0AA0000
MI: AAA 0000,0AA A00,AAA 000
MN: 000-AAA
NV: 00A-000
NH: 000 0000
NJ: A00-AAA
NM: 000-AAA,AAA-000
NY, NC, PA, TX, VA, WI: AAA-0000
OH: AAA 0000
OK: 000AAA
PR: AAA-000
RI: 000-000
SC: AAA 000,000 0AA
TN: A00-00A
UT: A00 0AA
凡A
手段大写字母减去一个随机字符IOQ
和0
手段单一的随机位数(0
到9
)。
来自Wikipedia的所有信息。这些(状态)都是我所理解的,并且没有不规则的规则。
这是代码高尔夫球,因此最短答案以字节为单位!
IN
。我们是否统一选择一种格式(000A,000AA,000AAA或AAA000中的一种),然后从该格式中选择一个数字(每种格式的权重均等)。还是我们考虑该状态的所有格式的数字空间,然后从整个数字空间中选取(权重越大的较大格式)?