随笔分类 -  OJ-其他学校

摘要:http://120.78.162.102/problem.php?cid=1333&pid=0 【问题 A: 4357买糖】【等差数列】 Code: #include <bits/stdc++.h> using namespace std; int main() { int a,b,p,ans; 阅读全文
posted @ 2017-12-25 01:48 Roni_i 阅读(292) 评论(0) 推荐(0)
摘要:【题目链接】:https://vijos.org/p/category/%E5%85%B6%E4%BB%96,%E4%BA%8C%E5%88%86%E6%9F%A5%E6%89%BE 描述 一个快递公司要将n个包裹分别送到n个地方,并分配给邮递员小K一个事先设定好的路线,小K需要开车按照路线给的地点 阅读全文
posted @ 2017-12-24 12:16 Roni_i 阅读(317) 评论(0) 推荐(0)
摘要:【题意】:给你一个数k,求所有使得1/k = 1/x + 1/y成立的x≥y的整数对。 【分析】:枚举所有在区间【k+1, 2k】上的 y 即可,当 1/k - 1/y 的结果分子为1即为一组解。 【代码】: 阅读全文
posted @ 2017-12-18 17:01 Roni_i 阅读(172) 评论(0) 推荐(0)
摘要:【题意】:乘积最大的子序列。n∈[1,10],s∈[-10,10] 【代码】: 阅读全文
posted @ 2017-12-18 16:37 Roni_i 阅读(176) 评论(0) 推荐(0)
摘要:【题意】:输入正整数n,用0~9这10个数字不重复组成两个五位数abcde和fghij,使得abcde/fghij的商为n,按顺序输出所有结果。如果没有找到则输出“There are no solutions for N.”。这里2<=n<=79。 【分析】: 1.因为n>=2,且abcde=fgh 阅读全文
posted @ 2017-12-18 16:11 Roni_i 阅读(215) 评论(0) 推荐(0)
摘要:Description A ring is composed of n (even number) circles as shown in diagram. Put natural numbers 1,2,3,...,n into each circle separately, and the su 阅读全文
posted @ 2017-12-18 12:46 Roni_i 阅读(311) 评论(0) 推荐(0)
摘要:https://vjudge.net/problem/UVA-272 【分析】:标记一下。 【代码】: 阅读全文
posted @ 2017-12-13 15:01 Roni_i 阅读(246) 评论(0) 推荐(0)
摘要:官方题解:http://www.jnxxhzz.com/Article/article/9.html 2019: 特产 Description Input Output 输出一个整数表示dd带回来的特产重量 输出一个整数表示dd带回来的特产重量 Sample Input 2 3 6 1 3 Samp 阅读全文
posted @ 2017-12-11 12:19 Roni_i 阅读(399) 评论(0) 推荐(0)