摘要:
#include<bits/stdc++.h> using namespace std; typedef long long ll; const ll N = 1000000 + 5; #define MaxSize 50 typedef struct{ int data[MaxSize]; int 阅读全文
摘要:
题目链接 题目描述: Input: The first line of the input contains two integers nn and mm (1≤n,m≤2⋅105,n⋅m≤2⋅1051≤n,m≤2⋅105,n⋅m≤2⋅105) — the size of the matrix. T 阅读全文
摘要:
题目链接 题目描述: Polycarp was gifted an array aa of length nn . Polycarp considers an array beautiful if there exists a number CC , such that each number in 阅读全文
摘要:
题目链接 题目描述: 矩阵 M 包含 R 行 C 列,第 i 行第 j 列的值为 Mi,j。 请寻找一个子矩阵,使得这个子矩阵的和最大,且满足以下三个条件: 子矩阵的行数不能超过 X 行。 子矩阵的列数不能超过 Y 列。 子矩阵中 0 的个数不能超过 Z 个。 请输出满足以上条件的最大子矩阵和。 I 阅读全文
摘要:
题目链接 题目描述: A championship is held in Berland, in which nn players participate. The player with the number ii has a_iai ( a_i \ge 1ai≥1 ) tokens. The 阅读全文