搜索
您的当前位置:首页正文

杭电OJ 2071 Max Num C++

来源:好走旅游网

#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;

int main() {
  int n;
  cin >> n;
  while (n--) {
    int num;
    float temp;
    float ans = -1.0;
    cin >> num;
    while (num--) {
      cin >> temp;
      ans = max(ans, temp);
    }
    printf("%.2f\n", ans);
  }
  return 0;
};

因篇幅问题不能全部显示,请点此查看更多更全内容

Top