‹ 上一题 下一题 ›

g7-02295. GESP-7级-2023-12-单选-第01题 未做

1000 ms 256 MB 测试点 ? 通过率 20% GESPGESP-72023-12单选客观题7级·数学库函数数学库常用函数

定义变量 double x,如果下面代码输入为 100,输出最接近( )。

#include <iostream>
#include <string>
#include <cmath>
#include <vector>
using namespace std;

int main()
{
    double x;

    cin >> x;
    cout << log10(x) - log2(x) << endl;

    cout << endl;
    return 0;
}
  • A.
  • B.
  • C.
  • D.
未选择
输入
输出

            
答案