网站首页 站内搜索

搜索结果

查询Tags标签: ccf201909,共有 2条记录
  • ccf201909-1数列分段(python100分)

    n=int(input()) a=list(map(int ,input().split())) before = a[0] count = 0 for i in range(n):if(a[i]!=before):#数字之间发生变化就加一count = count + 1before = a[i]if(a[i]==before and i==n-1):#最后一个数字的情况count = count +1 print(count) 我发现每次我…

    2021/9/25 11:40:49 人评论 次浏览
  • ccf201909-1数列分段(python100分)

    n=int(input()) a=list(map(int ,input().split())) before = a[0] count = 0 for i in range(n):if(a[i]!=before):#数字之间发生变化就加一count = count + 1before = a[i]if(a[i]==before and i==n-1):#最后一个数字的情况count = count +1 print(count) 我发现每次我…

    2021/9/25 11:40:49 人评论 次浏览
扫一扫关注最新编程教程