#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false), cin.tie(0); cout << fixed << setprecision(0); int n; cin >> n; cout << ll(n) * pow(2, 20 - 2);//注意pow对应的计算结果是double,输出采用的是科学计数法 return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false), cin.tie(0); cout << fixed << setprecision(0); int n; cin >> n; cout << ll(n) * pow(2, 20 - 2);//注意pow对应的计算结果是double,输出采用的是科学计数法 return 0; }