有人会用赛码网的编译器吗?我做练习题无论如何都提交不成功
在做头条的练习题,然而赛码网真是有毒,怎么都提交不了,求大佬解答:
var str; while(str = read_line()){ var strs = str.split(" "); var m = Number(strs[0]); var n = Number(strs[1]); var arr = []; for(let i = m; i <= n; i++){ let num = i+""; let len = num.length; let sum = 0; for(let j = 0; j < len; j++){ sum = sum + Math.pow(num[j], len); } if(sum == num){ arr.push(sum); } } if(arr.length == 0){ print("no"); }else{ print(arr.join(" ")); } } //问题找到了,大家请注意了,赛码网JS语言,不支持let关键词!神坑,没有任何错误提示!