题解 2901: 查找特定的值

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

筛选

查找特定的值

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

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……

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

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

太难了真是要自习看题目

摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))x=int(input())for i in range(n):    if ……