首页 > 解决方案 > 使用网站时:codeforces。我对用户输入感到震惊。如何根据这样的网站构建我的代码?

问题描述

我通过选择 JS V8 Engine 和 NodeJS 上传了这段代码。

但是在线编译器以某种方式显示正确的结果并说错误的输出。

检查器注释:错误的输出格式文件意外结束 - 应有令牌

const w = (weight) => {
  //
  if (weight % 2 === 0 && ((weight / 2) % 2 === 0)) {
      console.log(`YES`);
  } else {
    console.log(`NO`);
  }
};

标签: javascriptnode.jsvisual-studio-code

解决方案


推荐阅读