Advertisement
ateyevtm

Untitled

Oct 12th, 2021
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. //1 task
  2. /*#include<iostream>
  3. #include <bits/stdc++.h>
  4. #include <math.h>
  5. using namespace std;
  6. int main(){
  7. int a,s,v;
  8. cin >> a;
  9. s=6*a*a;
  10. v=a*a*a;
  11. cout << s <<" "<< v;
  12. return 0 ;
  13. }
  14. */
  15. //3
  16. /*#include<iostream>
  17. #include <bits/stdc++.h>
  18. #include <math.h>
  19. using namespace std;
  20. int main(){
  21. int a,b,res,res1,res2;
  22. cin >> a >> b ;
  23. res = (a+b);
  24. res1 = a -b;
  25. res2 = a * b;
  26. cout << "Plus "<< res << endl;
  27. cout << "Minus " << res1 << endl;
  28. cout << "Mult " << res2 << endl;
  29. return 0 ;
  30. }
  31. */
  32. //4
  33. /*
  34. #include<iostream>
  35. #include <bits/stdc++.h>
  36. #include <math.h>
  37. using namespace std;
  38. int main(){
  39. double a,b,c,s;
  40. cin >> a >> b;
  41. c= sqrt(pow(a,2)+pow(b,2));
  42. s = 0.5 * a*b;
  43. cout << c << endl;
  44. cout << s <<endl;
  45. return 0;
  46. }
  47. */
  48. //2.1
  49. /*
  50. #include<iostream>
  51. #include <bits/stdc++.h>
  52. #include <math.h>
  53. using namespace std;
  54. int main(){
  55. double a,b,sr;
  56. cin >> a >> b;
  57. sr = (a+b)/2;
  58. cout << sr << endl;
  59. task();
  60. }
  61. */
  62. //2.2
  63. /*
  64. #include<iostream>
  65. #include <bits/stdc++.h>
  66. #include <math.h>
  67. using namespace std;
  68. int main(){
  69. double a,b,sr;
  70. cin >> a >> b;
  71. sr =sqrt(a*b);
  72. cout << sr << endl;
  73. return 0 ;
  74. }
  75. */
  76. //5
  77. /*
  78. #include<iostream>
  79. #include <bits/stdc++.h>
  80. #include <math.h>
  81. using namespace std;
  82. int main(){
  83. double x1,x2,y1,y2,S;
  84. cin >> x1 >> x2 >> y1 >> y2;
  85. S=sqrt((x2-x1) *(x2-x1) + (y2-y1) * (y2-y1));
  86. cout << S <<endl;
  87. return 0;
  88. }
  89. */
  90. //6
  91. /*
  92. #include<iostream>
  93. #include <bits/stdc++.h>
  94. #include <cmath>
  95. using namespace std;
  96. int main(){
  97. int x,res,res1,res2;
  98. cin >> x;
  99. res = pow((2*x),4) - pow((3*x),4) - pow((3*x),3) + pow((4*x),2) - (5*x) + 6;
  100. cout << res <<endl;
  101. res1= 1 - 2*x + pow((3*x),2) - pow((4*x),3);
  102. cout << res1 <<endl;
  103. res2= 1+ 2*x + pow((3*x),2) + pow((4*x),3);
  104. cout << res2 << endl;
  105. return 0;
  106. }
  107. */
  108. //7
  109. /*#include<iostream>
  110. #include <bits/stdc++.h>
  111. #include <cmath>
  112. using namespace std;
  113. int main(){
  114. int a,b,res;
  115. cin >> a>>b;
  116. res = a*b/2;
  117. cout << res << endl;
  118. return 0;
  119. }
  120. */
  121. //8
  122. /*
  123. #include<iostream>
  124. #include <bits/stdc++.h>
  125. #include <cmath>
  126. using namespace std;
  127. int main()
  128. {
  129. double x,y,z,a,b;
  130. cin >> x >> y >> z;
  131. a=(sqrt((fabs(x-1))-sqrt(fabs(y)))/(1+(x*x/2)+(y*y/2)));
  132. cout << a <<endl;
  133. b = x*(atan(z)+exp(-x-3));
  134. cout << b;
  135. return 0;
  136. }
  137. */
  138. //9
  139. /*
  140. #include<iostream>
  141. #include <bits/stdc++.h>
  142. #include <cmath>
  143. using namespace std;
  144. int main()
  145. {
  146. double x,y,z,a,b;
  147. cin >> x >>y >> z;
  148. a=(3+exp(y-1))/(1+x*x*fabs(y-tan(z)));
  149. cout << a <<endl;
  150. b=1+fabs(y-x)+ (pow((y-x),2)/2)+ fabs(pow(y-x,3)/3);
  151. cout << b <<endl;
  152. return 0;
  153. }
  154. */
  155. //10
  156. /*
  157. #include<iostream>
  158. #include <bits/stdc++.h>
  159. #include <cmath>
  160. using namespace std;
  161. int main()
  162. {
  163. double x,y,z,a,b;
  164. cin >> x >>y >> z;
  165. a=(1+y)*(x+(y/x*x+4))/(exp(-x-2)+(1/x*x+4));
  166. cout << a << endl;
  167. b =1+cos(y-2)/(pow(x,4)/2)+sin(z) * sin(z);
  168. cout << b << endl;
  169. }
  170. */
  171. //11
  172. /*
  173. #include<iostream>
  174. #include <bits/stdc++.h>
  175. #include <cmath>
  176. using namespace std;
  177. int main()
  178. {
  179. double x,y,z,a,b;
  180. cin >> x >>y >> z;
  181. /*Я не смог решить эту проблему, у
  182. меня были проблемы с отсутствующими скобками,
  183. не могли бы вы помочь решить эту проблему?
  184. a=y+(x/(pow(y,2)+fabs(pow(x,2)/y+(pow(x,3)/3))));
  185. b=1+tan(z/2)*tan(z/2);
  186. cout << b << endl;
  187. return
  188. 0;
  189. }
  190. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement