题解 2006: 寻找奇整数

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

筛选

寻找奇整数-题解(C++代码)

摘要:解题思路:首先判断n若为奇数,检查n是否在数组中,若在,则输出其位置。若不在,输出Error。若为偶数,输出Error。注意事项:输出位置时下标要+1(3为第1个数)参考代码:#include<ios……

2006: 寻找奇整数

摘要:解题思路:注意事项:符合其中一个条件就break参考代码:#include <stdio.h> #define LEN 15 int main() { int exist=1,num,arr[……

python,简单的循环与判断

摘要:解题思路:使用简单的for循环和if判断即可。注意事项:参考代码:list=[3,7,5,13,25,45,78,23,8,33,9,19,28,41,50]s = eval(input())if s……

2006: 寻找奇整数

摘要:解题思路:注意事项:参考代码:n = int(input())lis = [3,7,5,13,25,45,78,23,8,33,9,19,28,41,50]if n%2 == 1 and n in l……

2006: 寻找奇整数

摘要:#include <bits/stdc++.h> using namespace std; int main(){     int a[] = {3,7,5,13,25,45,78,23,8……

寻找奇整数

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     int arr[15] = { 3,7,5,13,25,45,78,23,8,33,9,19,2……