test

作者: zhenwenl | 来源:发表于2018-11-06 15:13 被阅读99次

#include <stdio.h>

int main(int argc, char const *argv[])

{

  int a,b,c;

  scanf("%d %d %d", &a, &b, &c);

  int t;

  if(a>b){t=a;a=b;b=t;}

  if(a>c){t=a;a=c;c=t;}

  if(b>c){t=b;b=c;c=t;}

  printf("%d",b);

  return 0;

}

#include <stdio.h>

int main(int argc, char const *argv[])

{

  int a,b;

  scanf("%d %d", &a, &b);

  int sum = a * a + b * b;

  if (sum > 100) {

    printf("%d", sum);

  } else {

    printf("%d\n", (a+b));

  }

  return 0;

}

#include <stdio.h>

int main(int argc, char const *argv[])

{

  int N, a;

  scanf("%d", &N);

  int sum = 0;

  for (int i = 0; i < N-1; i++) {

    scanf("%d\n", &a);

    sum += a;

  }

  scanf("%d", &a);

  sum += a;

  sum = sum / N;

  printf("%d", sum);

  return 0;

}

#include <stdio.h>

int main(int argc, char const *argv[])

{

  int x, y;

  scanf("%d", &x);

  if (x < 15) {

    y = 2 * x;

  } else {

    y = 3 * (x - 15) + 30;

  }

  printf("%d", y);

  return 0;

}

#include <stdio.h>

int main(int argc, char const *argv[])

{

  int m,n;

  scanf("%d %d", &m, &n);

  if(m < n) {

    for (int i = m+1; i <= n; i++) {

      printf("%d ",i);

    }

  } else {

    printf("Error");

  }

  return 0;

}

相关文章

  • 泰斯拓

    TEST test Test TEST test test test test test test test

  • makedown test

    test test test test test test test ####### test test test...

  • 无标题文章

    test test test test test test test test

  • 2019-01-14

    test test test test test test test test

  • test2

    test test test test test test

  • 简书

    简书 test test test test test test

  • Test

    Test test Test Test Test

  • 无标题文章

    test test test test test

  • 此处为标题?

    测试test测试test测试test测试test测试test测试test测试test测试test测试test测试t...

  • Mardown

    Mardown test+test+test+test+test

网友评论

      本文标题:test

      本文链接:https://www.haomeiwen.com/subject/vpvyxqtx.html