当前位置:网站首页>1130: find the first character that appears only once
1130: find the first character that appears only once
2022-06-30 14:49:00 【I would, I think】
#include<string.h>
#include<iostream>
using namespace std;
int main()
{
char a[100000];
char b[100000];
int count;
cin.getline(a,100000);
strcpy(b,a);
int i=0,j;
for(i=0;i<strlen(a);i++)
{
for(j=0;j<strlen(b);j++)
{
if(a[i]==b[j]&&i!=j)
{
count=0;
break;
}
}
if(count==1)
{
cout<<a[i];
return 0;
}
else
count=1;
}
cout<<"no";
return 0;
}
边栏推荐
- 1 figure to explain the difference and connection between nodejs and JS
- Win10 one click Reset win10 to solve all system bugs without deleting any files and Applications
- 文本匹配——【NAACL 2022】GPL
- KnightCTF WEB
- Double pointer circular linked list
- Computer screenshot how to cut the mouse in
- @Component use cases
- Clear the route cache in Vue
- [untitled]
- 2021-05-12
猜你喜欢
PS cutting height 1px, Y-axis tiling background image problem
[geek challenge 2019] PHP problem solving record
CCF window (Full Score code + problem solving idea) March 2, 2014
【BUUCTF】 EasySql
PS dynamic drawing
CCF command line options (Full Score code + problem solving ideas + skill summary) March 3, 2014
ES6 notes
How to use Alibaba Vector Icon
CCF drawing (full mark code + problem solving ideas + skill summary) February 2, 2014
Querywrapper in mybaits plus
随机推荐
Att & CK red team evaluation field (I)
@Component use cases
Three ways and differences of defining functions in JS
[extensive reading of papers] a delicious recipe analysis framework for exploring multi modal recipes with variable attributes
C language & the difference between the address pointed to and the address pointed to by the pointer
Why is the resolution of the image generated by PHP GD library 96? How to change it to 72
[untitled]
中信期货开户麻烦吗安全吗,期货开户手续费是多少,能优惠吗
Minimum covering substring of two pointers
Hbuilder most commonly used and full shortcut key set
Basic learning notes of C language
Laravel upload error
The kth largest element in the sorted array
CCF numerical sorting (Full Score code + problem solving ideas + skill summary) 201503-2
Use PHP to delete the specified text content in the file
Svn password forgetting solution
Invalid argument during startup: Failed to open the . conf file: redis-window
CCF access control system (Full Score code + problem solving idea) 201412-1
Logiciel de récupération de données easyrecovery15 téléchargement
Computer screenshot how to cut the mouse in