2901: 查找特定的值 摘要:```#include using namespace std; int n,x,N[100000]; int main(){ cin>>n; for( int i=1;i>N[i]; …… 题解列表 2023年12月01日 0 点赞 0 评论 235 浏览 评分:0.0
查找特定的值(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语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { int n = 0, i = 0, x = 0…… 题解列表 2023年11月11日 0 点赞 0 评论 402 浏览 评分:9.9
查找特定的值(C语言) 摘要:解题思路: 循环查找数组里的值,一旦找到立马跳出循环注意事项: 注意输出-1参考代码:#include<stdio.h> int main() { int a,n; scanf…… 题解列表 2023年11月11日 0 点赞 0 评论 243 浏览 评分: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
2901: 查找特定的值 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a,b,d;int c[1000000];int main(){ int sum=1; …… 题解列表 2023年07月18日 0 点赞 0 评论 357 浏览 评分:9.9
编写题解 2901: 查找特定的值 摘要:解题思路: 1、创建三个变量(int n输入个数,m目标 bool z用于判断是否有目标数=false) 2、创建一个数组a[10001] 3、输入输入个数变量n 4、循环输入a数组的第i项 5、输入…… 题解列表 2023年07月13日 1 点赞 0 评论 380 浏览 评分:9.9
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