上一页 1 ··· 158 159 160 161 162 163 164 165 166 ··· 222 下一页
摘要: Time Limit: 1 second Memory Limit: 50 MB【问题描述】给你n根火柴棍,你可以拼出多少个形如“A+B=C”的等式?等式中的A、B、C是用火柴棍拼出的整数(若该数非零,则最高位不能是0)。用火柴棍拼数字0-9的拼法如图所示: 注意: ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(287) 评论(0) 推荐(0)
摘要: Time Limit: 1 second Memory Limit: 128 MB【问题描述】【输入格式】【输出格式】Sample Input3 6 8 20 30 40 7 2 6 3 7 8 13 15 23Sample Output70【题目链接】:http://noi.qz5... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(93) 评论(0) 推荐(0)
摘要: time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output As you have noticed, there are lovely... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(235) 评论(0) 推荐(0)
摘要: time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output There are some beautiful girls in Arp... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(195) 评论(0) 推荐(0)
摘要: time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output There exists an island called Arpa’s ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(245) 评论(0) 推荐(0)
摘要: Time Limit: 1 second Memory Limit: 128 MB【问题描述】现有n个任务,要交给A和B完成。每个任务给A或给B完成,所需的时间分别为ai和bi。问他们完成所有的任务至少要多少时间。 【输入格式】第一行一个正整数n,表示有n个任务。 接下来有n行,每行... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(244) 评论(0) 推荐(0)
摘要: Time Limit: 10 second Memory Limit: 2 MB问题描述 当一个人从银行贷款后,在一段时间内他将不得不每月尝还固定的分期付款。这个问题要求计算机出贷款者向银行支付的利率。假设利率按月累计。Input输入文件 仅一行包含三个用空格隔开的正整数。 第一个整... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(234) 评论(0) 推荐(0)
摘要: 【题目链接】:http://noi.qz5z.com/viewtask.asp?id=z10【题解】 对于第一问:从最上面那m个格子开始进行广搜就可以了; 然后看一下最下面那一行有没有被全部覆盖; 对于第二问: 要先明确;从最上面的那m个格子中的任意一个点开始,在最下面的沙漠... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(115) 评论(0) 推荐(0)
摘要: Time Limit: 1 second Memory Limit: 32 MB【问题描述】高考结束后,同学们大都找到了一份临时工作,渴望挣得一些零用钱。从今天起,Matrix67将连续工作N天(1#include #include #include #include #includ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(141) 评论(0) 推荐(0)
摘要: 【题目链接】:【题解】 错排公式 f[n] = (n-1)*(f[n-1]+f[n-2]); 这样理解; 要从n-1和n-2递推到n; 假设第n个位置上的数要放在前n-1个位置中的k位置;则有n-1种选择; 则对于第k个位置上原本的元素; 有两种情况; ① k那个元素到第n个位置上... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(168) 评论(0) 推荐(0)
上一页 1 ··· 158 159 160 161 162 163 164 165 166 ··· 222 下一页