Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Jos
Morass
Mar 1st, 2016
62
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
unordered_set
<
string
>
S
;
int
main
(
void
)
{
string s
;
while
(
cin
>>
s
)
if
(
S.
count
(
s
)
)
cout
<<
"TAKEN
\n
"
;
else
cout
<<
"OK"
,S.
insert
(
s
)
;
return
0
;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C++ | 4 min ago | 0.23 KB
Untitled
C++ | 10 min ago | 0.21 KB
Untitled
C++ | 14 min ago | 0.18 KB
Untitled
C++ | 17 min ago | 0.23 KB
Untitled
C++ | 26 min ago | 0.18 KB
Untitled
C++ | 30 min ago | 0.18 KB
Put Sprite Battlers on Bottom
JavaScript | 31 min ago | 0.95 KB
Untitled
C++ | 31 min ago | 0.21 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!