| 比赛 | EYOI与SBOI开学欢乐赛13th | 评测结果 | WWAAAAAAAAAAAAAAWWWAWWWWWWWWWWWWWWWWWWWWW |
|---|---|---|---|
| 题目名称 | 折叠字符串(Folding) | 最终得分 | 36 |
| 用户昵称 | yuan | 运行时间 | 0.000 s |
| 代码语言 | C++ | 内存使用 | 0.00 MiB |
| 提交时间 | 2022-10-21 21:59:03 | ||
#include <bits/stdc++.h>
using namespace std;
int main()
{
//ios::sync_with_stdio(false);
freopen("folding.in","r",stdin);
freopen("folding.out","w",stdout);
string s;
cin>>s;
int len=s.length();
if(len<5)
cout<<s<<endl;
else
cout<<len<<'('<<s[0]<<')'<<endl;
return 0;
}