#include <iostream>
using namespace std;
int main() {
int a,b,c,d;
cin >> a>> b>>c;
if (a < b) {
d= b;
b = a;
a = d;
}
if (b < c) {
d = c;
c = b;
b = d;
}
if (a < b) {
d = b;
b = a;
a = d;
}
cout << a<<" "<<b<<" "<<c;
return 0;
}
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
for (int c = 0;c <= (n- 1);c++) {
for (int b = n - 1-c;b > 0;b--) {
cout << " ";
}
for (int e = 0;e < 1 + 2 * c;e++) {
cout << "*";
}
cout << endl;
}
for (int c = n-2;c >=0;c--) {
for (int b = 0;b <n-c-1;b++) {
cout << " ";
}
for (int e = 0;e < 1 + 2 * c;e++) {
cout << "*";
}
cout << endl;
}
return 0;
}
#include <iostream>
using namespace std;
int main() {
int arr[] [5]= { 1,2,3,4,5,2,4,6,8,10,3,6,9,12,15,4,8,12,16,20 };
for (int a = 0;a < 4;a++) {
for (int b = 0;b < 5;b++) {
cout << arr[a][b]<<" ";
}
cout << endl;
}
return 0;
}
#include <iostream>
using namespace std;
int main() {
int a,b;
b = 0;
while (1) {
cin >> a;
if (a < 0) {
break;
}
for (int i = 1;i <= a;i++) {
b =b+i;
}
cout << b<<endl;
b = 0;
}
return 0;
}
#include <iostream>
using namespace std;
int main (){
int b, c,d;
for (int a = 100; a < 1000 ;a++) {
b = a % 10;
c =( a/10) % 10;
d = a / 100;
if (d*d*d + b * b*b + c * c*c == a) {
cout << a<<" ";
}
}
}
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int a, b, c,d,e;
cin >> a >> b >> c;
e = (a + b + c) / 2;
if (e <= a || e <= b || e <= c) {
cout << "你管这叫三角形?";
return 0;
}
d = sqrt(e*(e - a)*(e - b)*(e - c));
cout << d;
return 0;
}