上一页 1 ··· 121 122 123 124 125 126 127 128 129 ··· 218 下一页
摘要: 描述 Hanks 博士是 BT (Bio-Tech,生物技术) 领域的知名专家,他的儿子名叫 Hankson。现 在,刚刚放学回家的 Hankson 正在思考一个有趣的问题。 今天在课堂上,老师讲解了如何求两个正整数 c1和 c2 的最大公约数和最小公倍数。现 在 Hankson 认... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(187) 评论(0) 推荐(0)
摘要: time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Polycarp has interviewed Oleg and has... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(142) 评论(0) 推荐(0)
摘要: time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Theater stage is a rectangular field ... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(127) 评论(0) 推荐(0)
摘要: Time Limit: 1 second Memory Limit: 128 MB【问题描述】R国和S国正陷入战火之中,双方都互派间谍,潜入对方内部,伺机行动。历尽艰险后,潜伏于S国的R国间谍小C终于摸清了S国军用密码的编码规则:1.S国军方内部欲发送的原信息经过加密后在网格上发送,... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(238) 评论(0) 推荐(0)
摘要: 【题目链接】:http://hihocoder.com/problemset/problem/1493【题意】 【题解】 枚举P从2..n/2 如果P是质数且N-P也是质数; 则输出P和N-P就好; 【完整代码】#include using namespace std;#defi... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(157) 评论(0) 推荐(0)
摘要: 【题目链接】:https://leetcode.com/contest/leetcode-weekly-contest-26/problems/longest-uncommon-subsequence-ii/【题意】 字符串变成多个了; (不止两个) 让你求最长不公共子序列 【题解... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(154) 评论(0) 推荐(0)
摘要: 【题目链接】:https://leetcode.com/contest/leetcode-weekly-contest-26/problems/longest-uncommon-subsequence-i/【题意】 让你求两个字符串的最长不公共子序列的长度; 即这个序列是两个字符串... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(120) 评论(0) 推荐(0)
摘要: 【题目链接】:http://codeforces.com/problemset/problem/767/D【题意】 每个牛奶都有最晚可以喝的时间; 每天喝K瓶牛奶; 你有n瓶牛奶->已知每个牛奶的期限; 然后商店里面有m瓶牛奶;->已知每个牛奶的期限; 然后问你最多能再从商店里买几... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(319) 评论(0) 推荐(0)
摘要: 【题目链接】:http://codeforces.com/contest/534/problem/C【题意】 给你n个奇怪的骰子,第i个骰子有di个面; 然后给你n个骰子的点数之和; 问你每一个骰子有哪一些面是不可能出现的; 【题解】 对于第i个骰子 设它的点数为x 设其他n-1... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(139) 评论(0) 推荐(0)
摘要: 【题目链接】:http://codeforces.com/contest/534/problem/B【题意】 你在t秒内可以将车的速度任意增加减少绝对值不超过d; 然后要求在一开始车速为v1,t秒之后车速变为v2; 问你这段t时间内,车最多能行驶多远。 【题解】 枚举车“最大速度... 阅读全文
posted @ 2017-10-04 18:45 AWCXV 阅读(207) 评论(0) 推荐(0)
上一页 1 ··· 121 122 123 124 125 126 127 128 129 ··· 218 下一页