7 条题解

  • 0
    @ 2024-4-8 14:23:00
    a=input()
    i=0
    maxi=-1
    pos=0
    while i<len(a):
    f=1
    temp=0
    k=i+1
    if a[i]=='0':
    i+=1
    continue
    while a[i]>='0' and a[i]<='9':
    f=0
    temp=temp*10+int(a[i])
    i+=1
    if i>=len(a):
    break
    
    if temp>maxi and f==0:
    maxi=temp
    pos=k
    i+=1
    print(pos)
    

    信息

    ID
    117
    时间
    1000ms
    内存
    128MiB
    难度
    9
    标签
    递交数
    846
    已通过
    90
    上传者