比赛链接:ABC335
签到题。我签签签签——
#include <bits/stdc++.h>
using namespace std;
int main(){
string str;
cin>>str;
str[str.size()]='4';
cout<<str<<endl;
return 0;
}
又双叒叕是签到题。于是我签签签签——
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
for(int x=0;x<=n;x++){
for(int y=0;x+y<=n;y++){
for(int z=0;x+y+z<=n;z++)
cout<<x<<' '<<y<<' '<<z;
}
}
return 0;
}