题解 2901: 查找特定的值

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

筛选

2901: 查找特定的值

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

查找特定的值C解

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

题解 2901: 查找特定的值

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

2901: 查找特定的值

摘要:```#include using namespace std; int n,x,N[100000]; int main(){ cin>>n; for( int i=1;i>N[i];……

查找特定的值(C语言版)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,x,k;    int flag=0;    int arr[10001];    scanf……

查找特定的值(C语言)

摘要:解题思路:    循环查找数组里的值,一旦找到立马跳出循环注意事项:    注意输出-1参考代码:#include<stdio.h> int main() { int a,n; scanf……

查找特定的值

摘要:解题思路:首先通过scanf获取数据,接着对给定的一串数据,通过数组记录,开始获取的数据即为数组长度,再由这个数组长度来声明数组,并通过循环遍历给数据赋值,至此已经获得了一串代找数据,然后先给一共变量……