1、网易云音乐歌词_复制粘贴格式化
#include<iostream>
#include<string>
using namespace std;
int main(){
//freopen("in.txt","r",stdin);
freopen("out.txt","w",stdout);
string s;
while(getline(cin,s)){
if(s.size()==0)continue;
if(s.size()==1)cout<<'
';
else cout<<s<<'
';
}
return 0;
}
2、potplayer字幕_复制粘贴格式化
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main(){
freopen("1.txt","r",stdin);
string s;
while(getline(cin,s)){
s = s.substr(29);
cout<<s<<'
';
}
return 0;
}