A 面试

面试

https://ac.nowcoder.com/acm/contest/7606/A

A 面试

纯模拟

for _ in range(int(input())):
    s=input()
    if s.count("D")>=1 or s.count("C")>=2:
        print("failed")
    elif s.count("A")>=3 and "D" not in s:
        print("sp offer")
    else:
        print("offer")
全部评论

相关推荐

02-11 17:51
腾讯_TEG_技术
点赞 评论 收藏
分享
28小凳也想实习:项目不用一个业务一个轮子吗,刷牛客好多人说要一业务一轮子
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务