上一页 1 ··· 132 133 134 135 136 137 138 139 140 ··· 213 下一页
摘要: 【题目链接】:http://www.lydsy.com/JudgeOnline/problem.php?id=1004【题意】 给你sr+sb+sg张牌,(令n=sr+sb+sg),让你把这n张牌染成3种颜色(红蓝绿),且红色sr张,蓝色sb张,绿色sg张; 同时再给你m个变化关系... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(157) 评论(0) 推荐(0)
摘要: 【题目链接】:http://www.lydsy.com/JudgeOnline/problem.php?id=1002【题意】 让你把这个图通过删边操作搞成一棵树; 问方案数; 【题解】 先写个小规模的爆搜然后找规律; (爆搜程序在最下面)a[1..10]=15164512132... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(126) 评论(0) 推荐(0)
摘要: Time Limit: 1 second Memory Limit: 50 MB【问题描述】Tom最近在研究一个有趣的排序问题。如图所示,通过2个栈S1和S2,Tom希望借助以下4种操作实现将输入序列升序排序。操作a如果输入序列不为空,将第一个元素压入栈S1操作b如果栈S1不为空,将... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(173) 评论(0) 推荐(0)
摘要: 【题目链接】:http://noi.qz5z.com/viewtask.asp?id=b704 &&http://www.lydsy.com/JudgeOnline/problem.php?id=1999【题意】 给你一棵树; 让你找出所有的直径; 并在这些直径上面选取连续的一段;... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(136) 评论(0) 推荐(0)
摘要: time limit per test4 seconds memory limit per test256 megabytes inputstandard input outputstandard output Mahmoud wants to write a new diction... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(189) 评论(0) 推荐(0)
摘要: time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Mahmoud wrote a message s of length ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(236) 评论(0) 推荐(0)
摘要: time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Mahmoud has n line segments, the i-t... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(268) 评论(0) 推荐(0)
摘要: time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output While Mahmoud and Ehab were practici... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(230) 评论(0) 推荐(0)
摘要: Time Limit: 1 second Memory Limit: 50 MB【问题描述】帅帅经常跟同学玩一个矩阵取数游戏:对于一个给定的n*m的矩阵,矩阵中的每个元素aij均为非负整数。游戏规则如下:1. 每次取数时须从每行各取走一个元素,共n个。m次后取完矩阵所有的元素;2. ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(211) 评论(0) 推荐(0)
摘要: Time Limit: 1 second Memory Limit: 128 MB【问题描述】要求Xi(i = 1,2,3,4)是一个[-T..T]中的整数,满足方程AX1 + BX2 + CX3 + DX4 = P的解有多少组? 【输入格式】六个整数分别表示P、T、A、B、C、D... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(287) 评论(0) 推荐(0)
上一页 1 ··· 132 133 134 135 136 137 138 139 140 ··· 213 下一页