当前位置:网站首页>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;
}
边栏推荐
- MySQL index optimization
- Unity script lifecycle day02
- Solve the error of JSON module in PHP compilation and installation under CentOS 6.3
- Intranet penetrating FRP: hidden communication tunnel technology
- Variable cannot have type 'void'
- Lombok使用引发的血案
- . Net delay queue
- Common knowledge of unity Editor Extension
- Understand asp Net core - Authentication Based on jwtbearer
- 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
Overview of convolutional neural network structure optimization
Interface test - knowledge points and common interview questions
Detailed explanation of MySQL composite index (multi column index) use and optimization cases
Statistical learning: logistic regression and cross entropy loss (pytoch Implementation)
MySQL learning notes - data type (2)
Opencv learning -- geometric transformation of image processing
error: ‘connect‘ was not declared in this scope connect(timer, SIGNAL(timeout()), this, SLOT(up
Functional interface, method reference, list collection sorting gadget implemented by lambda
How was MP3 born?
随机推荐
Talking about Net core how to use efcore to inject multiple instances of a context annotation type for connecting to the master-slave database
The vscode waveform curve prompts that the header file cannot be found (an error is reported if the header file exists)
Book of night sky 53 "stone soup" of Apache open source community
Research Report on plastic recycling machine industry - market status analysis and development prospect forecast
Unity script lifecycle day02
2021 Google vulnerability reward program review
时钟轮在 RPC 中的应用
error: ‘connect‘ was not declared in this scope connect(timer, SIGNAL(timeout()), this, SLOT(up
The content of the source code crawled by the crawler is inconsistent with that in the developer mode
Accounting regulations and professional ethics [9]
Talking about Net core how to use efcore to inject multiple instances of a context annotation type for connecting to the master-slave database
Change the mouse pointer on ngclick - change the mouse pointer on ngclick
Opencv learning -- geometric transformation of image processing
Vscode setting outline shortcut keys to improve efficiency
Anta is actually a technology company? These operations fool netizens
Actual combat | use composite material 3 in application
[Chongqing Guangdong education] National Open University spring 2019 1396 pharmaceutical administration and regulations (version) reference questions
Shell programming basics
Proxifier global agent software, which provides cross platform port forwarding and agent functions
%F format character