71A Way Too Long Words
2015-05-21 15:29
344 查看
#include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <string> #include <algorithm> using namespace std; int main() { //freopen("aa.in", "r", stdin); int n; string str; cin >> n; while(n--) { cin >> str; int len = str.length(); if(len > 10) { printf("%c%d%c\n", str[0], len - 2, str[len-1]); } else { cout << str << endl; } } return 0; }
相关文章推荐
- 71A_Way Too Long Words
- CodeForces 71A Way Too Long Words
- CodeForces-71A-Way Too Long Words
- codeforces 71A - Way Too Long Words
- CF:71A.Way Too Long Words
- codeforces 71A Way Too Long Words(水题)
- Problem--71A--Codeforces--Way Too Long Words
- 71A. Way Too Long Words
- Way Too Long Words_Codeforces_71A
- cf水题:71A - Way Too Long Words
- 71A - Way Too Long Words
- Way Too Long Words_Codeforces
- codeforces水题100道 第二十一题 Codeforces Beta Round #65 (Div. 2) A. Way Too Long Words (strings)
- 【CodeForces】A. Way Too Long Words
- A. Way Too Long Words
- coderforces Way Too Long Words
- codeforces Way Too Long Words
- CodeForces 71 A.Way Too Long Words(水~)
- 【String】#65 A. Way Too Long Words
- Way Too Long Words