摘要:
题目描述 一些学校连入一个电脑网络。那些学校已订立了协议:每个学校都会给其它的一些学校分发软件(称作“接受学校”)。注意即使 B 在 A 学校的分发列表中, A 也不一定在 B 学校的列表中。 你要写一个程序计算,根据协议,为了让网络中所有的学校都用上新软件,必须接受新软件副本的最少学校数目(子任务 阅读全文
摘要:
~~~ //暴力 二维前缀和+枚举 O(N^3) include include include using namespace std; const int maxn=105; int n,m,ans,a[maxn][maxn],sum[maxn][maxn]; int main(){ scanf 阅读全文