当前位置:网站首页>{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;
} 边栏推荐
- Based on authorized access, cross host, and permission allocation under sqlserver
- 关于交换a和b的值的四种方法
- JDBC事务、批处理以及连接池(超详细)
- [pointer] use the insertion sorting method to arrange n numbers from small to large
- 内网渗透之内网信息收集(三)
- Statistics 8th Edition Jia Junping Chapter XIII Summary of knowledge points of time series analysis and prediction and answers to exercises after class
- Statistics 8th Edition Jia Junping Chapter IX summary of knowledge points of classified data analysis and answers to exercises after class
- Pointeurs: maximum, minimum et moyenne
- SystemVerilog discusses loop loop structure and built-in loop variable I
- Markdown font color editing teaching
猜你喜欢

Statistics 8th Edition Jia Junping Chapter IX summary of knowledge points of classified data analysis and answers to exercises after class

Circular queue (C language)
![New version of postman flows [introductory teaching chapter 01 send request]](/img/0f/a41a39093a1170cc3f62075fd76182.jpg)
New version of postman flows [introductory teaching chapter 01 send request]

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

What is the transaction of MySQL? What is dirty reading and what is unreal reading? Not repeatable?

Quaternion -- basic concepts (Reprint)

《统计学》第八版贾俊平第四章总结及课后习题答案

5分钟掌握机器学习鸢尾花逻辑回归分类

Intranet information collection of Intranet penetration (4)

Wang Shuang's detailed notes on assembly language learning I: basic knowledge
随机推荐
"If life is just like the first sight" -- risc-v
指针 --按字符串相反次序输出其中的所有字符
Harmonyos application development -- address book management system telmanagesys based on listcontainer [phonebook][api v6]
An unhandled exception occurred when C connected to SQL Server: system Argumentexception: "keyword not supported:" integrated
What is the transaction of MySQL? What is dirty reading and what is unreal reading? Not repeatable?
c语言学习总结(上)(更新中)
《统计学》第八版贾俊平第十二章多元线性回归知识点总结及课后习题答案
MySQL中什么是索引?常用的索引有哪些种类?索引在什么情况下会失效?
1.支付系统
浙大版《C语言程序设计实验与习题指导(第3版)》题目集
《統計學》第八版賈俊平第七章知識點總結及課後習題答案
New version of postman flows [introductory teaching chapter 01 send request]
Captcha killer verification code identification plug-in
Network technology related topics
Uibutton status exploration and customization
《统计学》第八版贾俊平第七章知识点总结及课后习题答案
How to test whether an object is a proxy- How to test if an object is a Proxy?
The difference between layer 3 switch and router
【指针】求字符串的长度
Overview of LNMP architecture and construction of related services