- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 51nod 1232 完美数 状态压缩+数位dp
1232 完美数 题目来源: 胡仁东基准时间限制:2 秒 空间限制:131072 KB 分值: 160 难度:6级算法题 收藏 关注如果一个数能够被组成它的各个非0数字整除,则称它是完美数。例如:1-9都是完美数,10,11,12,101都是完美数,但是13就不是完美数(因为13不能被数字3整除)。现在给定正整数x,y,求x和y之间(包含x和y的闭区间)共有多少完美数。题目作者为:Input第1行...
2018-06-29 23:35:40 656
原创 HDU 6148 Valley Numer(数位DP)
Valley NumerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 915 Accepted Submission(s): 482Problem Description众所周知,度度熊非常喜欢数字。它最近发明了一种新的数字:Val...
2018-06-29 17:57:11 325
原创 HDU - 4734 F(x) (数位DP)
F(x)Time Limit: 1000/500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7839 Accepted Submission(s): 3080Problem DescriptionFor a decimal number x with n digits (...
2018-06-29 11:28:27 614
原创 链表的用法
久违的链表 mua mua mua !!!#include<bits/stdc++.h>using namespace std;struct node{ int data; // 单链表的数据域 struct node *Next; // 单链表的指针域 }; /**建立1:头插,逆序 */node *creat1(int n){ node *he...
2018-06-29 10:08:24 1318
原创 HDU - 4507 吉哥系列故事——恨7不成妻(数位DP)
吉哥系列故事——恨7不成妻Time Limit: 1000/500 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 5721 Accepted Submission(s): 1864Problem Description 单身! 依然单身! 吉哥依然单身! DS级码农吉...
2018-06-29 09:53:49 222
原创 牛客练习赛20 题解
时间限制:C/C++ 3秒,其他语言6秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述 如果不想读故事的話,可以直接跳到最后一段... 大一开学第一天,在学校的超市里,我遇见了她——那个站在摆满饼干的架子前蓝色裙子的长发女孩,她微微俯下身子挑选着奥利奥,似乎在为选哪种口味发愁着。那时的我很怂,只敢远远地看着,也不忍心凑近...
2018-06-17 23:49:40 360
原创 "字节跳动杯"2018中国大学生程序设计竞赛-女生专场 SA-IS后缀数组
SA-IS后缀数组Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 1062 Accepted Submission(s): 321Problem Description小Q最近阅读了SA-IS算法在线性时间内构造后缀数组的相关论文...
2018-06-17 14:21:58 351
原创 AtCoder Beginner Contest 099 解题报告
A - ABDTime limit : 2sec / Memory limit : 256MBScore : 100 pointsProblem StatementDecades have passed since the beginning of AtCoder Beginner Contest.The contests are labeled as ABC001, ABC002, … from...
2018-06-13 17:42:53 766
原创 HDU 6287 口算训练
口算训练Time Limit: 8000/4000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 1363 Accepted Submission(s): 275Problem Description小Q非常喜欢数学,但是他的口算能力非常弱。因此他找到了小T,给了小T一个...
2018-06-13 17:16:26 262
原创 AtCoder Grand Contest 025
A - Digits SumTime limit : 2sec / Memory limit : 1024MBScore : 200 pointsProblem StatementTakahashi has two positive integers A and B.It is known that A plus B equals N. Find the minimum possible valu...
2018-06-05 16:39:42 430
ACM C++ stl 模板
2018-06-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人