Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Way Too Long Words
SUBMITTED BY:
Guest
DATE:
March 9, 2014, 4:29 p.m.
FORMAT:
C++
SIZE:
382 Bytes
Raw
Download
Tweet
HITS:
663
Go to comments
Report
//Haha TTpro
//Way Too Long Words
#include
<iostream>
#include
<string.h>
using
namespace
std
;
int
main
()
{
char
a
[
101
];
int
x
;
int
n
;
cin
>>
n
;
for
(
int
i
=
1
;
i
<=
n
;
i
++
)
{
cin
>>
a
;
x
=
strlen
(
a
);
if
(
x
>
10
)
{
cout
<<
a
[
0
]
<<
x
-
2
<<
a
[
x
-
1
]
<<
endl
;
}
else
cout
<<
a
<<
endl
;
}
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus