摘要: 题目链接:https://ac.nowcoder.com/acm/contest/5666/D 题目大意:给定一实正定二次型矩阵\(A\),求当\(\sum_{i=1}^n\sum_{j=1}^{n}A_{ij}x_ix_j\le 1\),即\(x^TAx \le 1\)时,\(\sum_{i=1} 阅读全文
posted @ 2020-07-13 01:38 DeaphetS 阅读(595) 评论(3) 推荐(1) 编辑
摘要: 题目链接:1316F - Battalion Strength 题目大意:对于一个序列\(\left \{ a_n \right \}\),定义其权值为,将其排序后,\(\sum_{i=1}^{n-1}a_i\cdot a_{i+1}\)的值。现在给出一个数组,要求每次修改其中一个位置的值,并求出修 阅读全文
posted @ 2020-03-05 17:02 DeaphetS 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 小号冲黄失败...心塞塞_(:з」∠)_ 1316A - Grade Allocation \(ans=min(m,\sum_{i=1}^n a_i)\) #include<bits/stdc++.h> using namespace std; int T,n,m,a[1111]; int main 阅读全文
posted @ 2020-03-05 05:06 DeaphetS 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 这场迅速签到后就被F题给教育了...挂机了足足有80+min_(:з」∠)_还是要提高下自己的姿势水平 1305A - Kuroni and the Gifts 将两个数组分别排序后输出即可 #include<bits/stdc++.h> using namespace std; #define N 阅读全文
posted @ 2020-03-04 03:23 DeaphetS 阅读(308) 评论(0) 推荐(1) 编辑
摘要: 678A - Johny Likes Numbers 20171130 简单数学题,注意是严格大于就好了 #include<stdlib.h> #include<stdio.h> #include<math.h> #include<cstring> #include<iostream> #inclu 阅读全文
posted @ 2020-03-03 15:53 DeaphetS 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 665A - Buses Between Cities 20171129 奇奇怪怪的小数学题...推推式子就好了,边界情况比较蛋疼 #include<stdlib.h> #include<stdio.h> #include<math.h> #include<cstring> #include<ios 阅读全文
posted @ 2020-03-03 04:09 DeaphetS 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 这个东西已经咕咕咕了快一年的时间,想想昨天校内训练差点被学弟们爆锤,真是怠惰啊..._(:з」∠)_ 从开始刷教育轮的蓝名水平,到“Educational Round补完计划”开启时的紫名中游水平,再到现在个人水平也游到了黄名中下游,应该是不需要用狂刷div2的水题来提升自a56爆大奖在线娱乐了,不过既然当初挖了这个 阅读全文
posted @ 2020-03-02 04:19 DeaphetS 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 题目链接:1320C - World of Darkraft: Battle for Azathoth/1321E - World of Darkraft: Battle for Azathoth 题目大意:有\(n\)种剑,每种有对应的攻击值和价格、\(m\)种盾,每种有对应的防御值和价格。以及\ 阅读全文
posted @ 2020-03-02 03:25 DeaphetS 阅读(542) 评论(1) 推荐(2) 编辑
摘要: 题目链接:1301E - Nanosoft 题目大意:给定一个\(n\times n\)的四色矩阵,要求回答\(q\)次询问:求一个子矩阵中最大的满足条件的正方形。一个正方形满足条件当且仅当其边长为偶数且把他均分成四块后,a56爆大奖在线娱乐\(\frac{1}{4}\)大小的正方形都等于对应的颜色(左上为'R', 阅读全文
posted @ 2020-02-14 01:19 DeaphetS 阅读(305) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-01-24 23:49 DeaphetS 阅读(57) 评论(0) 推荐(0) 编辑