Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7137 - 3 тоог өсөхөөр

Өгөгдсөн 3 тоог өсөхөөр эрэмбэл.

Input

Нэг мөрөнд 3 бүхэл тоо зайгаар тусгаарлагдан өгөгдөнө. 

Output

Өсөхөөр эрэмдлэгдсэн 3 тоог зайгаар тугаарлан нэг мөрөнд хэвлэ.

Example 

Input 1:

24 65 10

Output 1:

10 24 65

Input 2:

240 240 -234

Output 2:

-234 240 240



Нэмсэн:Bataa
Огноо:2019-11-30
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 ASM64 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2023-06-15 23:13:37
///by @erkhem_b

#include <iostream>

using namespace std;

int main(){
int a, b, c, min, ave, max;

cin>>a>>b>>c;

if(a>b){max=a; min=b;}
else {max=b; min=a;}

if(c>max){ave = max; max = c;}
else{
if(c>min){ave=c;}
else {ave=min; min=c;}
}

cout<<min<<" "<<ave<<" "<<max;
return 0;
}//simple as that 8)
2023-02-27 03:43:34
#include<iostream>
using namespace std;
int main () {
int a,b,c;
cin>>a>>b>>c;
if(a>=b;a>=c;b>=c){
cout<<c<<" " << b<< " " <<a;
}
else
if(a>=b; a>=c;c>=b){
cout<<b<<" " << c<< " " <<a;
}
else
if(b>=a; b>=c; a>=c) {
cout<<c<<" " << a<< " " <<b;

}
else
if(b>=a; b>=c; c>=a){
cout<<a<<" " << c<< " " <<b;
}
else
if(c>=a; c>=b; b>=a){
cout<<a<<" " << b<< " " <<c;{
else
if(c>=a; c>=b; a>=b) {
cout<<b<<" " << a<< " " <<c;
}
return 0;
}
2023-02-27 03:39:31
#include<iostream>
using namespace std;
int main () {
int a,b,c;
cin>>a>>b>>c;
if(a>=b && a>=c && b>=c) cout<<c<<" " << b<< " " <<a;
else
if(a>=b && a>=c && c>=b) cout<<b<<" " << c<< " " <<a;
else
if(b>=a && b>=c && a>=c) cout<<c<<" " << a<< " " <<b;
else
if(b>=a && b>=c && c>=a) cout<<a<<" " << c<< " " <<b;
else
if(c>=a && c>=b && b>=a) cout<<a<<" " << b<< " " <<c;
else
if(c>=a && c>=b && a>=b) cout<<b<<" " << a<< " " <<c;
} mai
2021-11-10 12:26:53
#include<iostream>
using namespace std;
int main () {
int a,b,c;
cin>>a>>b>>c;
if(a>=b && a>=c && b>=c) cout<<c<<" " << b<< " " <<a;
else
if(a>=b && a>=c && c>=b) cout<<b<<" " << c<< " " <<a;
else
if(b>=a && b>=c && a>=c) cout<<c<<" " << a<< " " <<b;
else
if(b>=a && b>=c && c>=a) cout<<a<<" " << c<< " " <<b;
else
if(c>=a && c>=b && b>=a) cout<<a<<" " << b<< " " <<c;
else
if(c>=a && c>=b && a>=b) cout<<b<<" " << a<< " " <<c;
} biguuuuuuuuu
2019-12-05 13:17:46
#include<stdio.h>
#include<stdlib.h>
int main () {
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a>b && a>c && b>c) printf("%d %d %d",a,b,c);
else
if(a>b && a>c && c>b) printf("%d %d %d",a,c,b);
else
if(b>a && b>c && a>c) printf("%d %d %d",b,a,c);
else
if(b>a && b>c && c>a) printf("%d %d %d",b,c,a);
else
if(c>a && c>b && b>a) printf("%d %d %d",c,b,a);
else
printf("%d %d %d",c,a,b);
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.