标签:style ar io color sp on div art bs
3 5 9
6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#include <stdio.h> #include <math.h> int max(int a, int b) { return (a > b ? a : b); } int min(int a, int b) { return (a < b ? a : b); } int main() { int a, b, c; int m, n; scanf("%d%d%d",&a, &b, &c); m = max(a, max(b, c)); n = min(a, min(b, c)); printf("%d\n", m - n); return 0; }
题目三 最大最小数之差
原文地址:http://www.cnblogs.com/lcchuguo/p/4171537.html