当前位置:网站首页>Lv166 turned over
Lv166 turned over
2022-07-04 16:31:00 【HBUcs2020】
【2020HBU Ladder training 】7-18 6 flared up _ Han Xu 051 The blog of -CSDN Blog
```cpp
#include<iostream>
using namespace std;
int main() {
string s;
getline(cin,s);
int i=0;
int cnt;
while(i<s.size()){
if(s[i]!='6') cout<<s[i++];
else{
for(cnt=0;s[i]=='6'&&i<s.size();i++,cnt++);
if(cnt>9) cout<<27;
else if(cnt>3) cout<<9;
else
while(cnt--) cout<<6;
}
}
return 0;
}
边栏推荐
- [North Asia data recovery] a database data recovery case where the partition where the database is located is unrecognized due to the RAID disk failure of HP DL380 server
- Research Report on market supply and demand and strategy of China's Sodium Tetraphenylborate (cas+143-66-8) industry
- Will the memory of ParticleSystem be affected by maxparticles
- MySQL - MySQL adds self incrementing IDs to existing data tables
- Function test - knowledge points and common interview questions
- DIY a low-cost multi-functional dot matrix clock!
- China's plastic processing machinery market trend report, technological innovation and market forecast
- D3D11_ Chili_ Tutorial (2): draw a triangle
- Selenium element interaction
- [Previous line repeated 995 more times]RecursionError: maximum recursion depth exceeded
猜你喜欢
[tutorial] yolov5_ DeepSort_ The whole process of pytoch target tracking and detection
Web components series - detailed slides
[Previous line repeated 995 more times]RecursionError: maximum recursion depth exceeded
AI system content recommendation issue 24
Vscode setting outline shortcut keys to improve efficiency
Filtered off site request to
QT graphical view frame: element movement
[hcie TAC] question 5 - 1
Redis shares four cache modes
TypeError: list indices must be integers or slices, not str
随机推荐
实战:fabric 用户证书吊销操作流程
Review of Weibo hot search in 2021 and analysis of hot search in the beginning of the year
TypeError: not enough arguments for format string
Software Engineer vs Hardware Engineer
Essential basic knowledge of digital image processing
165 webmaster online toolbox website source code / hare online tool system v2.2.7 Chinese version
Accounting regulations and professional ethics [11]
Case sharing | integrated construction of data operation and maintenance in the financial industry
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
Four point probe Industry Research Report - market status analysis and development prospect prediction
Find numbers
China tall oil fatty acid market trend report, technical dynamic innovation and market forecast
MySQL learning notes - data type (2)
Preliminary practice of niuke.com (10)
Accounting regulations and professional ethics [6]
Socks agent tools earthworm, ssoks
[North Asia data recovery] a database data recovery case where the partition where the database is located is unrecognized due to the RAID disk failure of HP DL380 server
Digital recognition system based on OpenCV
In today's highly integrated chips, most of them are CMOS devices
QT graphical view frame: element movement