2777: 计算2的幂(超级简单)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; long long……
题解 2777: 计算2的幂
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int m……
编写题解 2777: 计算2的幂
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<math.h>
using namespace std;
int main()
{
long l……
2777: 计算2的幂
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int n;……
221486416456185456
摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; cout<<(int)pow(……
2的幂 基础模式,中规中矩
摘要:解题思路:pow函数的应用注意事项:注意头文件math.h参考代码:#include<stdio.h>#include<math.h>int main(){ int n,i; scanf(……
解法有很多,多思考进步才会大
摘要:解题思路:注意事项:参考代码: int n,s=2; scanf("%d",&n); for(int i=0;i<n-1;i++){ s = s * 2; ……
题解 2777: 计算2的幂
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a = 0; int b = 1; int i = 0; scanf("%d\n", &a); for ……