Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //1 task
- /*#include<iostream>
- #include <bits/stdc++.h>
- #include <math.h>
- using namespace std;
- int main(){
- int a,s,v;
- cin >> a;
- s=6*a*a;
- v=a*a*a;
- cout << s <<" "<< v;
- return 0 ;
- }
- */
- //3
- /*#include<iostream>
- #include <bits/stdc++.h>
- #include <math.h>
- using namespace std;
- int main(){
- int a,b,res,res1,res2;
- cin >> a >> b ;
- res = (a+b);
- res1 = a -b;
- res2 = a * b;
- cout << "Plus "<< res << endl;
- cout << "Minus " << res1 << endl;
- cout << "Mult " << res2 << endl;
- return 0 ;
- }
- */
- //4
- /*
- #include<iostream>
- #include <bits/stdc++.h>
- #include <math.h>
- using namespace std;
- int main(){
- double a,b,c,s;
- cin >> a >> b;
- c= sqrt(pow(a,2)+pow(b,2));
- s = 0.5 * a*b;
- cout << c << endl;
- cout << s <<endl;
- return 0;
- }
- */
- //2.1
- /*
- #include<iostream>
- #include <bits/stdc++.h>
- #include <math.h>
- using namespace std;
- int main(){
- double a,b,sr;
- cin >> a >> b;
- sr = (a+b)/2;
- cout << sr << endl;
- task();
- }
- */
- //2.2
- /*
- #include<iostream>
- #include <bits/stdc++.h>
- #include <math.h>
- using namespace std;
- int main(){
- double a,b,sr;
- cin >> a >> b;
- sr =sqrt(a*b);
- cout << sr << endl;
- return 0 ;
- }
- */
- //5
- /*
- #include<iostream>
- #include <bits/stdc++.h>
- #include <math.h>
- using namespace std;
- int main(){
- double x1,x2,y1,y2,S;
- cin >> x1 >> x2 >> y1 >> y2;
- S=sqrt((x2-x1) *(x2-x1) + (y2-y1) * (y2-y1));
- cout << S <<endl;
- return 0;
- }
- */
- //6
- /*
- #include<iostream>
- #include <bits/stdc++.h>
- #include <cmath>
- using namespace std;
- int main(){
- int x,res,res1,res2;
- cin >> x;
- res = pow((2*x),4) - pow((3*x),4) - pow((3*x),3) + pow((4*x),2) - (5*x) + 6;
- cout << res <<endl;
- res1= 1 - 2*x + pow((3*x),2) - pow((4*x),3);
- cout << res1 <<endl;
- res2= 1+ 2*x + pow((3*x),2) + pow((4*x),3);
- cout << res2 << endl;
- return 0;
- }
- */
- //7
- /*#include<iostream>
- #include <bits/stdc++.h>
- #include <cmath>
- using namespace std;
- int main(){
- int a,b,res;
- cin >> a>>b;
- res = a*b/2;
- cout << res << endl;
- return 0;
- }
- */
- //8
- /*
- #include<iostream>
- #include <bits/stdc++.h>
- #include <cmath>
- using namespace std;
- int main()
- {
- double x,y,z,a,b;
- cin >> x >> y >> z;
- a=(sqrt((fabs(x-1))-sqrt(fabs(y)))/(1+(x*x/2)+(y*y/2)));
- cout << a <<endl;
- b = x*(atan(z)+exp(-x-3));
- cout << b;
- return 0;
- }
- */
- //9
- /*
- #include<iostream>
- #include <bits/stdc++.h>
- #include <cmath>
- using namespace std;
- int main()
- {
- double x,y,z,a,b;
- cin >> x >>y >> z;
- a=(3+exp(y-1))/(1+x*x*fabs(y-tan(z)));
- cout << a <<endl;
- b=1+fabs(y-x)+ (pow((y-x),2)/2)+ fabs(pow(y-x,3)/3);
- cout << b <<endl;
- return 0;
- }
- */
- //10
- /*
- #include<iostream>
- #include <bits/stdc++.h>
- #include <cmath>
- using namespace std;
- int main()
- {
- double x,y,z,a,b;
- cin >> x >>y >> z;
- a=(1+y)*(x+(y/x*x+4))/(exp(-x-2)+(1/x*x+4));
- cout << a << endl;
- b =1+cos(y-2)/(pow(x,4)/2)+sin(z) * sin(z);
- cout << b << endl;
- }
- */
- //11
- /*
- #include<iostream>
- #include <bits/stdc++.h>
- #include <cmath>
- using namespace std;
- int main()
- {
- double x,y,z,a,b;
- cin >> x >>y >> z;
- /*Я не смог решить эту проблему, у
- меня были проблемы с отсутствующими скобками,
- не могли бы вы помочь решить эту проблему?
- a=y+(x/(pow(y,2)+fabs(pow(x,2)/y+(pow(x,3)/3))));
- b=1+tan(z/2)*tan(z/2);
- cout << b << endl;
- return
- 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement