summaryrefslogtreecommitdiff
path: root/71A/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to '71A/main.cpp')
-rw-r--r--71A/main.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/71A/main.cpp b/71A/main.cpp
new file mode 100644
index 0000000..bbc9111
--- /dev/null
+++ b/71A/main.cpp
@@ -0,0 +1,26 @@
+#include <iostream>
+#include <vector>
+#include <string>
+
+using namespace std;
+
+int main(){
+ int a;
+ string str;
+ vector<string> v1;
+ cin>>a;
+ v1.resize(a);
+ for(int i = 0; i < a; i++){
+ cin>>str;
+ int b = str.size();
+ v1.at(i) = str;
+ if(b > 10){
+ v1.at(i) = str.at(0) + to_string(b - 2) + str.at(str.size() - 1);
+ }
+ }
+ for(int i = 0; i < a; i++){
+ cout<<v1.at(i)<<endl;
+ }
+
+ return 0;
+}