题解 2901: 查找特定的值

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2901: 查找特定的值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,m;    scanf("%d",&n);//输入    int arr[10001]={0}……

2901: 查找特定的值

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e7;ll a[N……

2901: 查找特定的值

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e7;ll a[N……

题解 2901: 查找特定的值

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e7;ll……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){    int n,* a,i,m;    scanf("%d", &n); ……

查找特定的值

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

2901:查找特定的值——遍历

摘要:解题思路: 给了n个数,需要从中找值为x的数的下标。               因此可以设定一个数组a,用来存放这n个数。               然后遍历数组a,寻找某个下标k,使得  a[k……