当前位置:网站首页>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;
}
边栏推荐
- Software Engineer vs Hardware Engineer
- Stew in disorder
- [North Asia data recovery] a database data recovery case where the disk on which the database is located is unrecognized due to the RAID disk failure of HP DL380 server
- Unity script API - GameObject game object, object object
- Model fusion -- stacking principle and Implementation
- Interpretation of the champion scheme of CVPR 2020 night target detection challenge
- Unity animation day05
- Unity script API - component component
- AutoCAD - set color
- How to save the contents of div as an image- How to save the contents of a div as a image?
猜你喜欢
Vscode prompt Please install clang or check configuration 'clang executable‘
The 17 year growth route of Zhang Liang, an open source person, can only be adhered to if he loves it
Ten clothing stores have nine losses. A little change will make you buy every day
Function test - knowledge points and common interview questions
What should ABAP do when it calls a third-party API and encounters garbled code?
Neuf tendances et priorités du DPI en 2022
D3D11_ Chili_ Tutorial (2): draw a triangle
DIY a low-cost multi-functional dot matrix clock!
[Previous line repeated 995 more times]RecursionError: maximum recursion depth exceeded
Common knowledge of unity Editor Extension
随机推荐
Variable cannot have type 'void'
Final consistency of MESI cache in CPU -- why does CPU need cache
Function test - knowledge points and common interview questions
Can I "reverse" a Boolean value- Can I 'invert' a bool?
Object distance measurement of stereo vision
[book club issue 13] packaging format and coding format of audio files
Research Report on market supply and demand and strategy of China's plastics and polymer industry
C implementation defines a set of intermediate SQL statements that can be executed across libraries
The vscode waveform curve prompts that the header file cannot be found (an error is reported if the header file exists)
What is torch NN?
C language: implementation of daffodil number function
Rearrange array
Market trend report, technical innovation and market forecast of tetrabromophthalate (pht4 diol) in China
Accounting regulations and professional ethics [7]
Opencv learning -- geometric transformation of image processing
实战:fabric 用户证书吊销操作流程
Research Report on surgical otorhinolaryngology equipment industry - market status analysis and development prospect prediction
Daily notes~
Market trend report, technical innovation and market forecast of electrochromic glass and devices in China and Indonesia
MFC implementation of ACM basic questions encoded by the number of characters