列表

详情


FED69. 二进制转换

描述

给定二进制字符串,将其换算成对应的十进制数字

示例1

输入:

'11000000'

输出:

192

原站题解

HTML/CSS/JavaScript 解法, 执行用时: 841ms, 内存消耗: 77772KB, 提交时间: 2021-04-03

{"css":"","js":"function base10(str) {\n    var res = parseInt(str, 2)\n    return res;\n}","html":"","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 842ms, 内存消耗: 77772KB, 提交时间: 2020-12-28

{"css":"","js":"function base10(str) {\n    return parseInt(str, 2)\n}","html":"","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 843ms, 内存消耗: 77772KB, 提交时间: 2021-05-06

{"css":"","js":"function base10(str) {\n     return parseInt(str,2)\n}","html":"","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 843ms, 内存消耗: 77840KB, 提交时间: 2021-07-20

{"css":"","js":"function base10(str) {\n\n    return parseInt(str,2);\n}","html":"","libs":[]}

HTML/CSS/JavaScript 解法, 执行用时: 843ms, 内存消耗: 77844KB, 提交时间: 2020-12-13

{"css":"","js":"function base10(str) {\n    return parseInt(str, 2);\n}","html":"","libs":[]}

上一题