summaryrefslogtreecommitdiff
path: root/71A
diff options
context:
space:
mode:
authormjkwiatkowski <mati.rewa@gmail.com>2026-06-01 14:34:18 +0200
committermjkwiatkowski <mati.rewa@gmail.com>2026-06-01 14:34:18 +0200
commit7172d4f401f22192abc1e116a9a88c5078eb082f (patch)
tree65b099c01ddea514a99ad68bd6306fed1a6f8b67 /71A
initial commitHEADmaster
Diffstat (limited to '71A')
-rwxr-xr-x71A/mainbin0 -> 45496 bytes
-rw-r--r--71A/main.cpp26
2 files changed, 26 insertions, 0 deletions
diff --git a/71A/main b/71A/main
new file mode 100755
index 0000000..e7d0bd3
--- /dev/null
+++ b/71A/main
Binary files differ
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;
+}