parent
a3208beb52
commit
460b5ebd2e
@ -0,0 +1,10 @@
|
|||||||
|
#include <bits/stdc++.h>
|
||||||
|
using namespace std;
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int a,b,c;
|
||||||
|
cin>>a>>b>>c;
|
||||||
|
cout<<a-b<<" "<<a+c<<endl;
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
#include <bits/stdc++.h>
|
||||||
|
using namespace std;
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int a,b;
|
||||||
|
cin>>a>>b;
|
||||||
|
cout<<a+2*b;
|
||||||
|
return 0;
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
#include <bits/stdc++.h>
|
||||||
|
using namespace std;
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
double a,b,c,d;
|
||||||
|
cin>>a>>b>>c>>d;
|
||||||
|
double s = a*b+c*d;
|
||||||
|
double v = s/(b+d);
|
||||||
|
printf("%.1f\n",s);
|
||||||
|
printf("%.1f",v);
|
||||||
|
return 0;
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
题目全部完成
|
Loading…
Reference in new issue