javascript - 使用网站时:codeforces。我对用户输入感到震惊。如何根据这样的网站构建我的代码?
问题描述
我通过选择 JS V8 Engine 和 NodeJS 上传了这段代码。
但是在线编译器以某种方式显示正确的结果并说错误的输出。
检查器注释:错误的输出格式文件意外结束 - 应有令牌
const w = (weight) => {
//
if (weight % 2 === 0 && ((weight / 2) % 2 === 0)) {
console.log(`YES`);
} else {
console.log(`NO`);
}
};
解决方案
推荐阅读
- python - 如何获取不在内部边界框内但在外部边界框之间的 numpy 数组中的所有 3d 点?
- javascript - `for` 循环或 `forEach` 中的 AppendChild
- json - sqflite + Flutter : map((e) => .... 返回 [类实例]
- maven - 没有这样的目标'@maven//:io_lettuce_lettuce_core':目标'io_lettuce_lettuce_core'未在包中声明
- python-3.x - 创建一个 for 循环来查找列表特定部分的平均值
- c++ - 如何加快回溯算法?
- hadoop - 在pig中输出两个值之间有空格的元组
- intellij-idea - IntelliJ - 如何更改 Markdown 预览字体?
- java - phoenix table select join return Failed after attempt=11
- python - 将 HTML 转换为 Pandas DF,保持基于 Class 的行