1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| #include <stdio.h>int main(){ int a, b, c, g, m, s, x;scanf("%d %d %d", &a, &b, &c);g = a; m = b; s = c;if (g < m){ x = g; g = m; m = x; } if (m < s){ x = m; m = s; s = x; } if (g < m){ x = g; g = m; m = x; }printf("%d\n", s); printf("%d\n", m); printf("%d\n\n", g); printf("%d\n", a); printf("%d\n", b); printf("%d\n", c);return 0;} |
Thursday, January 28, 2016
URI 1042 - Simple Sort
Labels:
URI Solution
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thank you for commenting. Please wait for response :)