题目大体概括 A
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <iostream>
using namespace std;typedef long long LL;
const int N 500;
LL a[N];
int sz;
bool Check(LL n)
{for (int i 0; i < sz; i ){if (n a[i])…
Codeforces Round #698 (Div. 2) A-E解题报告与解法证明
题目解法总体概括 A Nezzar and Colorful Balls #include <bits/stdc.h>
using namespace std;const int N 110;
int a[N], f[N];int main()
{int t; cin >> t;while (t -- ){static int n;scanf("%…