![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 55
Dodd9199
Void main with out return.
展开
-
BestCoder Round #83 zxa and wifi(一个奇怪的DP题)
大大的打个脸,这个题这样的解法是错误的,不过思路还是挺妙的,可以看看吧。 听说BC要停办了,莫名的有点悲伤,晚上停办前最后一场,遇上了一个奇怪的DP题,通过率好低,特地裱起来自己做纪念。。。。(ˉ﹃ˉ),题目描述 zxa来到Q镇做义工,镇长希望给住在Q镇中轴线上的nn户人家实现网络覆盖。这nn户人家可以看作是中轴线上的质点,从东到西依次编号从11到nn,其中第i(1≤i<n)i(1\leq原创 2016-05-14 21:44:32 · 558 阅读 · 0 评论 -
PAT CCCC天梯赛模拟赛 N个数求和(分数求和)
L1-009. N个数求和 时间限制 400 ms 内存限制 65536 kB 本题的要求很简单,就是求N个数字的和。麻烦的是,这些数字是以有理数“分子/分母”的形式给出的,你输出的和也必须是有理数的形式。 输入格式: 输入第一行给出一个正整数N(<=100)。随后一行按格式“a1/b1 a2/b2 …”给出N个有理数。题目保证所有分子和分母都在长整型范围内原创 2016-05-15 21:03:29 · 3738 阅读 · 0 评论 -
PAT 乙级1027 天梯 L1-002 打印沙漏
1027. 打印沙漏(20) 时间限制 200 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 CHEN, Yue 本题要求你写个程序把给定的符号打印成沙漏的形状。例如给定17个“*”,要求按下列格式打印***** *** * ******** 所谓“沙漏形状”,是指原创 2016-07-13 19:03:25 · 838 阅读 · 0 评论 -
基础C语言之Typedef和struct的结合使用
/** * c语言typedef关键字 * typedef 作为c语言中常见的关键字, * 用法有多种,经常用来改变或者说给一种类型另取一个名字 */#include <cstdio>int main() { //先理清一个概念 int num; //上面这个最简单的变量声明中,应该这样来看 //int是类型 //num是变量 //即类型原创 2016-09-17 16:33:27 · 1093 阅读 · 0 评论 -
[Codeforces 系列] Codeforces 1A.Theatre Square
A. Theatre Square Theatre Square in the capital city of Berland has a rectangular shape with the size n×mn × mn × m meters. On the occasion of the city’s anniversary, a decision was taken to pave ...原创 2018-09-16 14:22:14 · 302 阅读 · 0 评论 -
[Codeforces 系列] Codeforces 1C. Ancient Berland Circus
1B. SpreadsheetsIn the popular spreadsheets systems (for example, in Excel) the following numeration of columns is used. The first column has number A, the second — number B, etc. till column 26 tha...原创 2018-09-17 23:13:19 · 309 阅读 · 0 评论