当前位置 博文首页 > zzr17147的博客:信息学奥赛一本通---第一章---C++语言入门--- 1
#include<bits/stdc++.h>
using namespace std;
int n,m;
int main()
{
cin>>n>>m;
cout<<n+m;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<"Hello,World!"<<endl;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int a,b,c;
int main()
{
cin>>a>>b>>c;
cout<<b<<endl;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int a,b,c;
int main()
{
cin>>a>>b>>c;
printf("%8d %8d %8d",a,b,c);
return 0;
}
#include<bits/stdc++.h>
using namespace std;
char ch;
int main()
{
cin>>ch;
cout<<" "<<" "<<ch<<endl;
cout<<" "<<ch<<ch<<ch<<endl;
cout<<ch<<ch<<ch<<ch<<ch<<endl;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main()
{
int x,y,a,b;
double z;
cin>>x>>a>>y>>b;
z=(y*b-x*a)/(b-a);
cout<<fixed<<setprecision(2)<<z;
return 0;
}