随笔分类 - 2017寒假训练
摘要:1.23 Problem A Luxurious Houses 题意:给 n 个数 a[i],问使得 a[i] 为 [i,n] 最大值的时候需要给 a[i] 增加多少 简析:可以倒着扫一遍,维护一个 Max[i] 表示 从[i,n] 的最大值,如果 a[i] > Max[i+1] ,就是0,否则就是
阅读全文
摘要:寒假期间网上练习的题解将在此博客公布,具体内容见后文。 每日一练每日更新,其余周末更新。 欢迎留言、讨论。 AcBoard(截至第一周) 总题量 25 20 10 55 rank name regular daily contest total 1 李程辉 4 15 19 2 董家佚 2 14 15
阅读全文
摘要:每日一练 1.16 Problem A Simple Molecules 题意:给一个三元分子各原子的共价键数,问能否构造出符合题意的分子。 简析:设三个原子共价键数分别为a,b,c,且原子1与2,2与3,3与1,之间相连的键数为x,y,z, 得到线性方程组 $$ \left\{\begin{ali
阅读全文
摘要:A.统计字母的题,需要仔细看下题。 #include <cstdio> #include <iostream> #include <algorithm> #include <vector> #include <set> #include <string.h> #include <cctype> #i
阅读全文

浙公网安备 33010602011771号