随笔分类 -  0---水题

摘要:题目描述 由于乳制品产业利润很低,所以降低原材料(牛奶)价格就变得十分重要。帮助Marry乳业找到最优的牛奶采购方案。 Marry乳业从一些奶农手中采购牛奶,并且每一位奶农为乳制品加工企业提供的价格是不同的。此外,就像每头奶牛每天只能挤出固定数量的奶,每位奶农每天能提供的牛奶数量是一定的。每天Mar 阅读全文
posted @ 2019-01-16 21:20 wyboooo 阅读(674) 评论(0) 推荐(0)
摘要:题目:https://www.luogu.org/problemnew/show/P1583 思路:sort sort sort 题目:https://www.luogu.org/problemnew/show/P1051 思路:模拟拿奖学金的情况,找最大值。 题目:https://www.luog 阅读全文
posted @ 2019-01-15 22:25 wyboooo 阅读(168) 评论(0) 推荐(0)
摘要:题目:https://www.luogu.org/problemnew/show/P1059 思路:STL中的set使用。 题目:https://www.luogu.org/problemnew/show/P1068 思路:struct排序 题目:https://www.luogu.org/prob 阅读全文
posted @ 2019-01-15 21:45 wyboooo 阅读(236) 评论(0) 推荐(0)
摘要:题目描述 鲁宾逊先生有一只宠物猴,名叫多多。这天,他们两个正沿着乡间小路散步,突然发现路边的告示牌上贴着一张小小的纸条:“欢迎免费品尝我种的花生!――熊字”。 鲁宾逊先生和多多都很开心,因为花生正是他们的最爱。在告示牌背后,路边真的有一块花生田,花生植株整齐地排列成矩形网格(如图111)。有经验的多 阅读全文
posted @ 2019-01-12 16:27 wyboooo 阅读(268) 评论(0) 推荐(0)
摘要:题目背景 国际乒联现在主席沙拉拉自从上任以来就立志于推行一系列改革,以推动乒乓球运动在全球的普及。其中111111分制改革引起了很大的争议,有一部分球员因为无法适应新规则只能选择退役。华华就是其中一位,他退役之后走上了乒乓球研究工作,意图弄明白111111分制和212121分制对选手的不同影响。在开 阅读全文
posted @ 2019-01-12 14:18 wyboooo 阅读(465) 评论(0) 推荐(0)
摘要:题面pdfhttps://codeforc.es/gym/101889/attachments/download/7471/statements-2017-latam-regional.pdf zyn感冒,两个人打。刚开始两题超迅速,40分钟后开始各种写不出,自闭。然后突然又开出两题。 4题全部1A 阅读全文
posted @ 2018-11-18 17:07 wyboooo 阅读(373) 评论(0) 推荐(0)
摘要:A The King's Race http://codeforces.com/contest/1075/problem/A 题意: 一个人在\((1,1)\), 一个人在\((n,n)\), 现在他们每次轮流走一步,问谁先到达\((x,y)\) 思路: 每个人走到\((x,y)\)的步数是可以直接 阅读全文
posted @ 2018-11-09 17:02 wyboooo 阅读(156) 评论(0) 推荐(0)
摘要:大数取模的两道题。 虐狗宝典学习笔记: 两个数值执行算术运算时,以参与运算的最高数值类型为基准,与保存结果的变量类型无关。两个32位整数的成绩可能超过int类型的表示范围,但是CPU只会用一个32位寄存器保存结果,造成越界,此时我们必须把其中一个数强制转换成64位整数类型long long参与运算。 阅读全文
posted @ 2018-11-08 19:25 wyboooo 阅读(372) 评论(0) 推荐(0)
摘要:A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: Each inp 阅读全文
posted @ 2018-10-31 22:26 wyboooo 阅读(154) 评论(0) 推荐(0)
摘要:A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes 阅读全文
posted @ 2018-10-31 21:59 wyboooo 阅读(170) 评论(0) 推荐(0)
摘要:Given any string of N (≥5) characters, you are asked to form the characters into the shape of U. For example, helloworld can be printed as: h d e l l 阅读全文
posted @ 2018-10-28 20:15 wyboooo 阅读(154) 评论(0) 推荐(0)
摘要:Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文
posted @ 2018-10-28 19:51 wyboooo 阅读(123) 评论(0) 推荐(0)
摘要:The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the s 阅读全文
posted @ 2018-10-28 19:37 wyboooo 阅读(200) 评论(1) 推荐(1)
摘要:P1603 斯诺登密码 https://www.luogu.org/problemnew/show/P1603 思路:题目里写的非正规是真的坑啊,我还以为是非正规输入输入这些是不能算数字的,其实是要算的,而且 another 是什么鬼居然算1. 1 #include <iostream> 2 #in 阅读全文
posted @ 2018-10-24 22:23 wyboooo 阅读(269) 评论(0) 推荐(0)
摘要:P1055 ISBN号码 https://www.luogu.org/problemnew/show/P1055 题意:一个ISBN号码形如x-xxx-xxxxx-c,将ISBN号码中的前九个数字按顺序分别乘上1,2,3,...,9之后相加取模11得到c。问给出的c是否合法,若不合法输出合法的ISB 阅读全文
posted @ 2018-10-23 22:19 wyboooo 阅读(194) 评论(0) 推荐(0)
摘要:A golden plate http://codeforces.com/contest/1072/problem/A 题意:给一个n*m的格子,从最外层往里涂色,每次尽量涂最外面的那一圈,两圈涂色之间要间隔一格。问最多涂多少颜色。 思路:最外面一圈是2*n + 2(m - 2),然后行和列都减4就 阅读全文
posted @ 2018-10-21 21:28 wyboooo 阅读(244) 评论(0) 推荐(0)
摘要:A Make a triangle! http://codeforces.com/contest/1064/problem/A 题意: 给定三个整数表示三角形的边。每次给边长可以加一,问至少要加多少才能使这三个边成为一个三角形。 思路: 找到最大的边,然后最大边 + 1减剩下两条边就行了。负数的话就 阅读全文
posted @ 2018-10-14 22:33 wyboooo 阅读(296) 评论(0) 推荐(0)
摘要:5202 自然数拆分Lunatic版 0x50「动态规划」例题 描述 给定一个自然数N,要求把N拆分成若干个正整数相加的形式,参与加法运算的数可以重复。求拆分的方案数 mod 2147483648的结果。1≤N≤4000。 输入格式 一个整数n。 输出格式 输出一个数,即所有方案数因为这个数可能非常 阅读全文
posted @ 2018-10-07 15:55 wyboooo 阅读(447) 评论(0) 推荐(0)
摘要:5201 数字组合 0x50「动态规划」例题 描述 在N个数中找出其和为M的若干个数。先读入正整数N(1<N<100)和M(1<M<10000), 再读入N个正数(可以有相同的数字,每个数字均在1000以内), 在这N个数中找出若干个数, 使它们的和是M, 把满足条件的数字组合都找出来以统计组合的个 阅读全文
posted @ 2018-10-07 15:38 wyboooo 阅读(212) 评论(0) 推荐(0)
摘要:42.93% 1000ms 131072K LATTICE is learning Digital Electronic Technology. He is talented, so he understood all those pieces of knowledge in 10^{-9}10−9 阅读全文
posted @ 2018-09-12 21:26 wyboooo 阅读(160) 评论(0) 推荐(0)