注意js的坑 :由于read_line()只能读取1024个字符,所以如果题目中的用例涉及到长度大于1024字符串的,需要用到gets(n)这个函数。 https://labfiles.acmcoder.com/ojhtml/index.html#/?id=js%e8%af%bb%e5%8f%96%e8%b6%85%e9%95%bf%e5%ad%97%e7%ac%a6%e4%b8%b2 第一题用 read_line 会被卡在55