当前位置:网站首页>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;
}
边栏推荐
- Neuf tendances et priorités du DPI en 2022
- After the eruption of Tonga volcano, we analyzed the global volcanic distribution and found that the area with the most volcanoes is here!
- Research Report on market supply and demand and strategy of tetramethylpyrazine industry in China
- China's plastic processing machinery market trend report, technological innovation and market forecast
- Selenium browser (2)
- Cut! 39 year old Ali P9, saved 150million
- 165 webmaster online toolbox website source code / hare online tool system v2.2.7 Chinese version
- System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
- Recommend 10 excellent mongodb GUI tools
- Functional interface, method reference, list collection sorting gadget implemented by lambda
猜你喜欢
Penetration test --- database security: detailed explanation of SQL injection into database principle
Data Lake Governance: advantages, challenges and entry
时钟轮在 RPC 中的应用
Unity script lifecycle day02
Cut! 39 year old Ali P9, saved 150million
Talking about Net core how to use efcore to inject multiple instances of a context annotation type for connecting to the master-slave database
[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
MySQL index optimization
Qt---error: ‘QObject‘ is an ambiguous base of ‘MyView‘
Ten clothing stores have nine losses. A little change will make you buy every day
随机推荐
Shell programming basics
China's plastic processing machinery market trend report, technological innovation and market forecast
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
Research Report on market supply and demand and strategy of China's well completion equipment industry
JS to realize the countdown function
. Net delay queue
Big God explains open source buff gain strategy live broadcast
Unity animation day05
Market trend report, technical innovation and market forecast of electrochromic glass and devices in China and Indonesia
Research Report on market supply and demand and strategy of China's four sided flat bag industry
Using celery in projects
Laravel simply realizes Alibaba cloud storage + Baidu AI Cloud image review
Dry goods | fMRI standard reporting guidelines are fresh, come and increase your knowledge
The four most common errors when using pytorch
Can I "reverse" a Boolean value- Can I 'invert' a bool?
Game theory
Four point probe Industry Research Report - market status analysis and development prospect prediction
TypeError: list indices must be integers or slices, not str
What should ABAP do when it calls a third-party API and encounters garbled code?
Model fusion -- stacking principle and Implementation