摘要:
【题目描述】 在古埃及,人们使用单位分数的和(形如1/a的, a是自然数)表示一切有理数。如:2/3=1/2+1/6,但不允许2/3=1/3+1/3,因为加数中有相同的。对于一个分数a/b,表示方法有很多种,但是哪种最好呢?首先,加数少的比加数多的好,其... 阅读全文
posted @ 2022-09-20 22:53
老程序员111
阅读(307)
评论(0)
推荐(0)
摘要:
题目描述 满汉全席是中国最丰盛的宴客菜肴,有许多种不同的材料透过满族或是汉族的料理方式,呈现在數量繁多的菜色之中。由于菜色众多而繁杂,只有极少數博学多闻技艺高超的厨师能够做出满汉全席,而能够烹饪出经过专家认证的满汉全席,也是中国厨师最大的荣誉之一。世界满... 阅读全文
posted @ 2022-09-20 22:53
老程序员111
阅读(75)
评论(0)
推荐(0)
摘要:
Problem Description Scientists say a lot about the problems of global warming and cooling of the Earth. Indeed, such natural ph... 阅读全文
posted @ 2022-09-20 22:53
老程序员111
阅读(46)
评论(0)
推荐(0)
摘要:
Problem Description Vasya is going to the Olympics in the city Ntown by train. The boy wants to read the textbook to prepare fo... 阅读全文
posted @ 2022-09-20 22:53
老程序员111
阅读(54)
评论(0)
推荐(0)
摘要:
Problem Description One fine October day a mathematics teacher Vasily Petrov went to a class and saw there n pupils who sat at ... 阅读全文
posted @ 2022-09-20 22:53
老程序员111
阅读(42)
评论(0)
推荐(0)
摘要:
【题目描述】 给出一个长为 n 的数列,以及 n 个操作,操作涉及区间加法,区间求和。 【输入格式】 第一行输入一个数字 n。 第二行输入 n 个数字,第 i 个数字为 ai,以空格隔开。 接下来输入 n 行询问,每行输入四个数字 opt、l、r... 阅读全文
posted @ 2022-09-20 22:53
老程序员111
阅读(23)
评论(0)
推荐(0)
摘要:
【题目描述】 给出一个长为 n 的数列,以及 n 个操作,操作涉及区间加法,单点查值。 【输入格式】 第一行输入一个数字 n。 第二行输入 n 个数字,第 i 个数字为 ai,以空格隔开。 接下来输入 n 行询问,每行输入四个数字 opt、l、r... 阅读全文
posted @ 2022-09-20 22:53
老程序员111
阅读(29)
评论(0)
推荐(0)
摘要:
Problem Description There are n piles of stones of sizes a1, a2, ..., an lying on the table in front of you. During one move y... 阅读全文
posted @ 2022-09-20 22:53
老程序员111
阅读(28)
评论(0)
推荐(0)
摘要:
【概述】 DAG 图的最长路问题是一个比较少见的问题,具体问题是:给出一个 DAG 图,寻找图中的最长路 在 AOE 网中,在找出关键路径后,对其进行 DFS 即可得到图的最长路,由于这种方法的实现过于繁琐,这里介绍几种较为简单的实现。 【最短路算法】 对于最... 阅读全文
posted @ 2022-09-20 22:53
老程序员111
阅读(368)
评论(0)
推荐(1)
摘要:
描述 有n个矩形,每个矩形可以用a,b来描述,表示长和宽。矩形X(a,b)可以嵌套在矩形Y(c,d)中当且仅当a#include#include#include#include#include#include#include#include#includ... 阅读全文
posted @ 2022-09-20 22:53
老程序员111
阅读(23)
评论(0)
推荐(0)

浙公网安备 33010602011771号