当前位置:网站首页>{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;
} 边栏推荐
- 《统计学》第八版贾俊平第八章假设检验知识点总结及课后习题答案
- “Hello IC World”
- {1,2,3,2,5}查重问题
- Pointers: maximum, minimum, and average
- [pointer] the array is stored in reverse order and output
- JDBC 的四种连接方式 直接上代码
- How to earn the first pot of gold in CSDN (we are all creators)
- Chain team implementation (C language)
- Wu Enda's latest interview! Data centric reasons
- Solutions to common problems in database development such as MySQL
猜你喜欢

. Net6: develop modern 3D industrial software based on WPF (2)

Statistics 8th Edition Jia Junping Chapter XIII Summary of knowledge points of time series analysis and prediction and answers to exercises after class

数字电路基础(三)编码器和译码器

servlet中 servlet context与 session与 request三个对象的常用方法和存放数据的作用域。

Attack and defense world misc practice area (GIF lift table ext3)

Statistics 8th Edition Jia Junping Chapter 14 summary of index knowledge points and answers to exercises after class

Matplotlib绘图快速入门

后台登录系统,JDBC连接数据库,做小案例练习

王爽汇编语言详细学习笔记二:寄存器

Uibutton status exploration and customization
随机推荐
flask实现强制登陆
函数:求两个正数的最大公约数和最小公倍
Captcha killer verification code identification plug-in
函数:字符串反序存放
Apache APIs IX has the risk of rewriting the x-real-ip header (cve-2022-24112)
What language should I learn from zero foundation. Suggestions
Function: find 1-1/2+1/3-1/4+1/5-1/6+1/7-... +1/n
四元数---基本概念(转载)
Pointeurs: maximum, minimum et moyenne
The common methods of servlet context, session and request objects and the scope of storing data in servlet.
浙大版《C语言程序设计实验与习题指导(第3版)》题目集
Pointer -- output all characters in the string in reverse order
Internet Management (Information Collection)
Bing Dwen Dwen official NFT blind box will be sold for about 626 yuan each; JD home programmer was sentenced for deleting the library and running away; Laravel 9 officially released | Sifu weekly
Function: find the root of the equation by Newton iterative method
Intel oneapi - opening a new era of heterogeneity
Statistics 8th Edition Jia Junping Chapter 3 after class exercises and answer summary
Attack and defense world misc practice area (GIF lift table ext3)
数字电路基础(四) 数据分配器、数据选择器和数值比较器
《统计学》第八版贾俊平第十一章一元线性回归知识点总结及课后习题答案