import sys import math n=int(input()) s=input().split(" ") s=[int(i) for i in s] f=s[:] f.sort() ans=0 ds={} df={} for i in range(len(s)): ds[s[i]]=True df[f[i]]=True if ds==df: ans+=1 ds={} df={} print(ans)这个是我的,全ac
点赞 评论

相关推荐

03-16 22:00
武汉大学 C++
幸福的小熊猫想要offer:我阿里投的 c++岗,面试官说自己是做 java 的,c++这辈子才有了
点赞 评论 收藏
分享
02-28 17:01
门头沟学院 C++
俊朗的铁猫希望被捞:兄弟如果只想搞钱的话,你这个简历最适合的其实是辅导机构做dai写啥的真的特别赚
点赞 评论 收藏
分享
牛客网
牛客企业服务