题解列表

筛选

2955: 判决素数个数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll prime (ll x)//先判断……

2803: 整数的个数

摘要:解题思路:注意事项:别忘给sum赋值参考代码:#include <bits/stdc++.h>using namespace std;int main(){   int k,sum1=0,sum5=0……

2803: 整数的个数

摘要:解题思路:注意事项:定义变量后要赋值参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int k,sum1=0,sum5=……

ddddgggggggggggggggggggggggggggcb

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int k,sum1=0 ,sum5=0,sum10=……

2805: 乘方计算

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int a,n,sum=1;    cin>>a>>n……

2777:计算2的幂

摘要:解题思路:循环注意事项:变量参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int i,n,sum;    sum=1;……

2805: 乘方计算

摘要:解题思路:注意事项:因为是乘,所以“sum=1”,不是“sum=0”参考代码:#include <bits/stdc++.h>using namespace std;int main(){    in……

题解 1108: 守望者的逃离

摘要:解题思路:#include <stdio.h> int main(int argc, char** argv) { int M,S,T,su=0,t,m,time; scanf("%d%d……

运用字符串求解

摘要:解题思路:  用字符串的特点,  使输入的数字转化为字符串存储,   再用length函数限制输入位数,   最后用字符串下标输出注意事项: 参考代码:#include<iostream> usin……