摘要: 1449: [JSOI2009]球队收益 Description Input Output 一个整数表示联盟里所有球队收益之和的最小值。 Sample Input 3 3 1 0 2 1 1 1 10 1 0 1 3 3 1 2 2 3 3 1 Sample Output 43 HINT Sourc 阅读全文
posted @ 2018-03-09 21:25 蒟蒻JHY 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Discription In this problem you have to build tournament graph, consisting of n vertices, such, that for any oriented pair of vertices (v, u) (v ≠ u)  阅读全文
posted @ 2018-03-09 17:43 蒟蒻JHY 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 4873: [Shoi2017]寿司餐厅 Description Kiana最近喜欢到一家非常美味的寿司餐厅用餐。每天晚上,这家餐厅都会按顺序提供n种寿司,第i种寿司有一个 代号ai和美味度di,i,不同种类的寿司有可能使用相同的代号。每种寿司的份数都是无限的,Kiana也可以无限次 取寿司来吃,但 阅读全文
posted @ 2018-03-09 11:01 蒟蒻JHY 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 题目描述 给定一个nxm的网格,请计算三点都在格点上的三角形共有多少个。下图为4x4的网格上的一个三角形。注意三角形的三点不能共线。 输入输出格式 输入格式: 输入一行,包含两个空格分隔的正整数m和n。 输出格式: 输出一个正整数,为所求三角形数量。 输入输出样例 输入样例#1: 2 2 输出样例# 阅读全文
posted @ 2018-03-09 10:20 蒟蒻JHY 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Discription Far away from our world, there is a banana forest. And many lovely monkeys live there. One day, SDH(Song Da Hou), who is the king of banan 阅读全文
posted @ 2018-03-09 09:01 蒟蒻JHY 阅读(251) 评论(0) 推荐(0) 编辑