Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
76302 刘浩宇 数列求和 C++ Wrong Answer 1 MS 284 KB 250 2024-06-02 11:12:08

Tests(0/5):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int m; cin >> m; int n = 1; while (pow(2, n) - 1 < m) { n++; } long long sum = pow(2, n) - 1; cout << n << sum << endl; return 0; }


Run Info:

------Input------
10
------Answer-----
1023
------Your output-----
415