mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-06-09 12:14:23 +00:00
[Init] Solved solutions
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
cin >> n;
|
||||
while (n--)
|
||||
{
|
||||
string s;
|
||||
cin >> s;
|
||||
if (s.length() > 10)
|
||||
{
|
||||
cout << s[0] << s.length() - 2 << s[s.length() - 1] << endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
cout << s << endl;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user