查找特定的值(C语言版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,x,k; int flag=0; int arr[10001]; scanf…… 题解列表 2023年11月27日 0 点赞 0 评论 206 浏览 评分:0.0
查找特定的值(C语言) 摘要:解题思路: 循环查找数组里的值,一旦找到立马跳出循环注意事项: 注意输出-1参考代码:#include<stdio.h> int main() { int a,n; scanf…… 题解列表 2023年11月11日 0 点赞 0 评论 245 浏览 评分:0.0
查找特定的值 摘要:解题思路:首先通过scanf获取数据,接着对给定的一串数据,通过数组记录,开始获取的数据即为数组长度,再由这个数组长度来声明数组,并通过循环遍历给数据赋值,至此已经获得了一串代找数据,然后先给一共变量…… 题解列表 2023年10月14日 0 点赞 0 评论 447 浏览 评分:0.0
2901: 查找特定的值(C语言) 摘要: #include #include int main() { int n; scanf("%d",&n); int a[n+1]; for(int i=1…… 题解列表 2023年07月24日 0 点赞 0 评论 285 浏览 评分:0.0
查找特定的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10000000];int main(){ int n,x; …… 题解列表 2023年07月18日 0 点赞 0 评论 270 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int n,* a,i,m; scanf("%d", &n); …… 题解列表 2023年06月03日 0 点赞 0 评论 226 浏览 评分:0.0
太难了真是要自习看题目 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))x=int(input())for i in range(n): if …… 题解列表 2023年05月05日 0 点赞 0 评论 313 浏览 评分:0.0
2901:查找特定的值——遍历 摘要:解题思路: 给了n个数,需要从中找值为x的数的下标。 因此可以设定一个数组a,用来存放这n个数。 然后遍历数组a,寻找某个下标k,使得 a[k…… 题解列表 2023年01月09日 0 点赞 0 评论 324 浏览 评分:0.0
2901: 查找特定的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; scanf("%d",&n);//输入 int arr[10001]={0}…… 题解列表 2022年11月17日 0 点赞 0 评论 306 浏览 评分:0.0
查找特定的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int a[10000]={0}; int i=0; int m; scanf("%d",&n);…… 题解列表 2022年10月26日 0 点赞 0 评论 336 浏览 评分:0.0