• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






goodniao_1

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2014年3月23日

擅长排列的小明 string(stl)的应用 + 排列
摘要: 题目来源:http://acm.nyist.net/JudgeOnline/problem.php?pid=19擅长排列的小明时间限制:1000ms | 内存限制:65535KB难度:4描述小明十分聪明,而且十分擅长排列计算。比如给小明一个数字5,他能立刻给出1-5按字典序的全排列,如果你想为难他,在这5个数字中选出几个数字让他继续全排列,那么你就错了,他同样的很擅长。现在需要你写一个程序来验证擅长排列的小明到底对不对。输入第一行输入整数N(1#include #include #include #include #include #include #include#includeusing 阅读全文
posted @ 2014-03-23 23:15 goodniao_1 阅读(166) 评论(0) 推荐(0)
 
queue n-1位数
摘要: n-1位数时间限制:3000ms | 内存限制:65535KB难度:1描述已知w是一个大于10但不大于1000000的无符号整数,若w是n(n≥2)位的整数,则求出w的后n-1位的数。输入第一行为M,表示测试数据组数。接下来M行,每行包含一个测试数据。输出输出M行,每行为对应行的n-1位数(忽略前缀0)。如果除了最高位外,其余位都为0,则输出0。样例输入4102359239231000样例输出23923230代码如下:#include #include #include #include #include #include #include #include#includeusing name 阅读全文
posted @ 2014-03-23 21:41 goodniao_1 阅读(108) 评论(0) 推荐(0)
 
并查集 删除节点 求集合的个数<set> hdu 2473
摘要: 题目来源:http://acm.hdu.edu.cn/showproblem.php?pid=2473Junk-Mail FilterTime Limit: 15000/8000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5343Accepted Submission(s): 1702Problem DescriptionRecognizing junk mails is a tough task. The method used here consists of two step 阅读全文
posted @ 2014-03-23 20:30 goodniao_1 阅读(369) 评论(0) 推荐(0)
 
foj 文件系统 stl string + vector 多对多的数据结构
摘要: 题目来源:http://acm.fzu.edu.cn/contest/problem.php?cid=135&sortid=1Problem A 文件系统Accept: 56Submit: 130Time Limit: 1000 mSecMemory Limit : 32768 KBProblem Description每个Linux文件具有四种访问权限:可读(r)、可写(w)、可执行(x)和无权限(-)。利用ls -l命令可以看到某个文件或目录的权限,它以显示数据的第一个字段为准。第一个字段由10个字符组成,如下:-rwxr-xr-x第1位表示文件类型,-表示文件,d表示目录2-4位 阅读全文
posted @ 2014-03-23 16:28 goodniao_1 阅读(449) 评论(0) 推荐(0)