2d1r10e
AC代码:
#include<string.h> #include<iostream> using namespace std; int main() { int T; cin>>T; while(T--) { string s,s1; cin>>s; int n=s.size(); int i=0,j=1; while(j<=n) { if(s[i]==s[j]) j++; else if(s[i]!=s[j]||j==n) { int k=j-i; if(k>99&&k<1000) { int a=k/100; s1+=a+'0'; a=(k/10)%10; s1+=a+'0'; a=k%10; s1+=a+'0'; } else if(k>9&&k<=99) { int a=k/10; s1+=a+'0'; a=k%10; s1+=a+'0'; } else s1+=k+'0'; s1+=s[i]; i=j; j++; } } cout<<s1<<endl; }return 0; }
您还没有登录,请您登录后再发表评论
EncodeDecode & ANSI-UTF8编码转换工具
String FilePath "d: images "+codeValue+" jpg"; 注释部分可以以文件方式保存 File f new File FilePath ; ImageIO write img "jpg" response getOutputStream ;">iText 5 0 2 ...
修改库QRCodeLib中的类QRCodeEncoder.cs 将public virtual Bitmap Encode(String content)里面的 return Encode(content, Encoding.Unicode); 修改为 return Encode(content, Encoding.GetEncoding("gb2312")); 这样...
截屏安装 : apt update apt install git python2 -y git clone https://github.com/PY-ENCODE cd PY-ENCODE运行: python2 PY-ENCODE.py或者 ; 使用单个命令apt update && apt install git python2 -y && git clone...
字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c#
std::(std::string src_info) { ParamDynamic param; param.ua_ = kA; param.ub_ = kB; param.uc_ = kC; param.ud_ = kD; std::string result; const char *src_data = src_info.c_str(); char *out_data_...
public static void encode String url String path String format int width int height { try { BitMatrix bitmatrix new MultiFormatWriter encode new String url getBytes "GBK" "ISO ...
一个简单的HTML页面,实现中文Unicode的转换。 本来自己随便写的,方便开发使用,希望给有需要的人一点帮助。
支持多种字符集,解决中文加密后解密乱码的问题
如何获得 运行脚本 检查文件大小
netty encode decode ,测试可用,内涵amf3的encode和decode,还有String的encode和decode
delphi 2010升级到xe8后,decodestring汉字出现:No mapping for the.mht
helix社区开发的mp3压缩与解码源代码,解码程序含定点模型。
Turbo 码编译码程序c++版,支持自定义信噪比、两种码率(1/2、1/3)、Log-MAP和MAX-LOG-MAP译码、自选译码迭代次数、AWGN和Rayleigh信道模拟。代码结构清晰,方便学习
htmlencode、htmldecode,html编码,可以方便在web页面,显示html源码,一般将<>&单引号,双引号进行转码。这也是防止html注入攻击一个好方法!
易语言encode加密解密源码,encode加密解密,Encode加密,Encode解密
Turbo lte encode decode
encode加密解密.rar encode加密解密.rar encode加密解密.rar encode加密解密.rar encode加密解密.rar encode加密解密.rar
自定义php json encode
include:- pngsrc.zip- holoprint.rar- MCColorsDemo.zip- CapDemoC.zip - AVI Capture , callback demo -
相关推荐
EncodeDecode & ANSI-UTF8编码转换工具
String FilePath "d: images "+codeValue+" jpg"; 注释部分可以以文件方式保存 File f new File FilePath ; ImageIO write img "jpg" response getOutputStream ;">iText 5 0 2 ...
修改库QRCodeLib中的类QRCodeEncoder.cs 将public virtual Bitmap Encode(String content)里面的 return Encode(content, Encoding.Unicode); 修改为 return Encode(content, Encoding.GetEncoding("gb2312")); 这样...
截屏安装 : apt update apt install git python2 -y git clone https://github.com/PY-ENCODE cd PY-ENCODE运行: python2 PY-ENCODE.py或者 ; 使用单个命令apt update && apt install git python2 -y && git clone...
字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c# 字符串转EnCode_c#
std::(std::string src_info) { ParamDynamic param; param.ua_ = kA; param.ub_ = kB; param.uc_ = kC; param.ud_ = kD; std::string result; const char *src_data = src_info.c_str(); char *out_data_...
public static void encode String url String path String format int width int height { try { BitMatrix bitmatrix new MultiFormatWriter encode new String url getBytes "GBK" "ISO ...
一个简单的HTML页面,实现中文Unicode的转换。 本来自己随便写的,方便开发使用,希望给有需要的人一点帮助。
支持多种字符集,解决中文加密后解密乱码的问题
如何获得 运行脚本 检查文件大小
netty encode decode ,测试可用,内涵amf3的encode和decode,还有String的encode和decode
delphi 2010升级到xe8后,decodestring汉字出现:No mapping for the.mht
helix社区开发的mp3压缩与解码源代码,解码程序含定点模型。
Turbo 码编译码程序c++版,支持自定义信噪比、两种码率(1/2、1/3)、Log-MAP和MAX-LOG-MAP译码、自选译码迭代次数、AWGN和Rayleigh信道模拟。代码结构清晰,方便学习
htmlencode、htmldecode,html编码,可以方便在web页面,显示html源码,一般将<>&单引号,双引号进行转码。这也是防止html注入攻击一个好方法!
易语言encode加密解密源码,encode加密解密,Encode加密,Encode解密
Turbo lte encode decode
encode加密解密.rar encode加密解密.rar encode加密解密.rar encode加密解密.rar encode加密解密.rar encode加密解密.rar
自定义php json encode
include:- pngsrc.zip- holoprint.rar- MCColorsDemo.zip- CapDemoC.zip - AVI Capture , callback demo -