We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b37750 commit 1fa6ee2Copy full SHA for 1fa6ee2
b01/bai18.cpp
@@ -0,0 +1,10 @@
1
+#include <iostream>
2
+#include <cmath>
3
+using namespace std;
4
+int main()
5
+{
6
+ double x1, y1, x2, y2;
7
+ cin >> x1 >> y1 >> x2 >> y2;
8
+ cout << sqrt( (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) );
9
+ return 0;
10
+}
b01/bai19.cpp
+ int x, y;
+ cin >> x >> y;
+ if (x % 7 == 0 && y % 7 == 0) cout << "true";
+ else cout << "false";
b01/bai20.cpp
@@ -0,0 +1,12 @@
+ double x, y, z, p, S;
+ cin >> x >> y >> z;
+ p = (x + y + z) / 2;
+ S = sqrt(p * (p - x) * (p - y) * (p - z));
+ cout << S;
11
12
0 commit comments