string = input("")
s = string.strip()
t = s.split()
if len(t) == 0 or len(t) >= 5000:
print(0)
else:
print(len(t[-1]))
s = string.strip()
t = s.split()
if len(t) == 0 or len(t) >= 5000:
print(0)
else:
print(len(t[-1]))
我已经通过这道题!
https://gw-c.nowcoder.com/api/sparta/jump/link?link=https%3A%2F%2Fwww.nowcoder.com%2FquestionTerminal%2F8c949ea5f36f422594b306a2300315da
全部评论
相关推荐