当前位置:网站首页>{1,2,3,2,5} duplicate checking problem
{1,2,3,2,5} duplicate checking problem
2022-07-06 14:42:00 【No two or three things】
#include<stdio.h>
main(){
int a[5]={1,2,3,5,1};
int i,j,flag=0;
for(i=0;i<5;i++){
for(j=i+1;j<5;j++){
if(a[i]==a[j]){
flag = 1;
printf("%d",a[i]);
break;
}
}
if(flag==1)break;
}
return 0;
} 边栏推荐
- Interview Essentials: what is the mysterious framework asking?
- Wu Enda's latest interview! Data centric reasons
- Keil5-MDK的格式化代码工具及添加快捷方式
- Lintcode logo queries the two nearest saplings
- Pointeurs: maximum, minimum et moyenne
- Overview of LNMP architecture and construction of related services
- Fundamentals of digital circuit (V) arithmetic operation circuit
- The common methods of servlet context, session and request objects and the scope of storing data in servlet.
- Statistics, 8th Edition, Jia Junping, Chapter 6 Summary of knowledge points of statistics and sampling distribution and answers to exercises after class
- JDBC看这篇就够了
猜你喜欢

《统计学》第八版贾俊平第六章统计量及抽样分布知识点总结及课后习题答案

Quaternion -- basic concepts (Reprint)

数字电路基础(二)逻辑代数

MySQL中什么是索引?常用的索引有哪些种类?索引在什么情况下会失效?

Wang Shuang's detailed notes on assembly language learning I: basic knowledge

Windows platform mongodb database installation

《统计学》第八版贾俊平第九章分类数据分析知识点总结及课后习题答案

ES全文索引

Realize applet payment function with applet cloud development (including source code)

《统计学》第八版贾俊平第三章课后习题及答案总结
随机推荐
[pointer] find the length of the string
【指针】求字符串的长度
数字电路基础(四) 数据分配器、数据选择器和数值比较器
Statistics 8th Edition Jia Junping Chapter 14 summary of index knowledge points and answers to exercises after class
《统计学》第八版贾俊平第八章假设检验知识点总结及课后习题答案
数字电路基础(三)编码器和译码器
Fundamentals of digital circuit (V) arithmetic operation circuit
Using flask_ Whooshalchemyplus Jieba realizes global search of flask
四元数---基本概念(转载)
《统计学》第八版贾俊平第十二章多元线性回归知识点总结及课后习题答案
关于超星脚本出现乱码问题
2022华中杯数学建模思路
What is an index in MySQL? What kinds of indexes are commonly used? Under what circumstances will the index fail?
Numpy Quick Start Guide
指针--剔除字符串中的所有数字
函数:求两个正数的最大公约数和最小公倍
《统计学》第八版贾俊平第七章知识点总结及课后习题答案
【指针】求解最后留下的人
Statistics, 8th Edition, Jia Junping, Chapter VIII, summary of knowledge points of hypothesis test and answers to exercises after class
5 minutes to master machine learning iris logical regression classification