题目pdf:http://acm.bnu.edu.cn/v3/external/124/12486.pdf
大致题意:求第n个不包含"4"和"13"为子串的数是多少 , n
思路:就是一般的数位DP,二分答案,对答案的数求数位DP算出此数以内有多少个满足条件的数
但是....居然答案爆long long,要用unsigned long long 才能过,就这个坑点
// ...
分类:
其他好文 时间:
2015-08-15 01:34:31
阅读次数:
135
小感一点一、砖头勾引和田玉先说点自己对sed的目前掌控吧,sed是一个文本流编辑器,逐行处理文件。默认情况下并不直接改变原本文件内容(除非使用-i选项)。sed工作有两个空间patternspace和holdingspace。patternspace,sed逐行将文本行拿出,置于patternspace中,然后做相应处..
分类:
其他好文 时间:
2015-08-14 19:27:26
阅读次数:
158
Problem E
Space Elevator
China is building a space elevator, which will allow the launching probes and satellites to a much
lower cost, enabling not only scienti?c research projects but also space ...
分类:
其他好文 时间:
2015-08-14 19:13:26
阅读次数:
112
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2015-08-14 18:35:55
阅读次数:
142
oracle 11.2.0.4.0INFO: Using paramFile: /home/oracle/softs/database/install/oraparam.iniINFO: INFO: INFO: Checking Temp space: must be greater than 12...
分类:
数据库 时间:
2015-08-14 13:40:10
阅读次数:
185
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2015-08-14 13:08:21
阅读次数:
98
Building a Space Station
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 5778
Accepted: 2874
Description
You are a member of the space station engineering...
分类:
其他好文 时间:
2015-08-14 10:03:58
阅读次数:
108
原题链接:http://acm.timus.ru/problem.aspx?space=1&num=17801780. Gray CodeTime limit: 0.5 secondMemory limit: 64 MBDenis, Vanya and Fedya gathered at their...
分类:
其他好文 时间:
2015-08-13 20:06:14
阅读次数:
136
题目链接:http://acm.timus.ru/problem.aspx?space=1&num=17741774. Barber of the Army of MagesTime limit: 0.5 secondMemory limit: 64 MBPetr, elected as a war...
分类:
其他好文 时间:
2015-08-13 20:02:51
阅读次数:
198
题目:回文数字的判断
Determine whether an integer is a palindrome. Do this without extra space.Some hints:
Could negative integers be palindromes? (ie, -1)If you are thinking of converting the integer to strin...
分类:
其他好文 时间:
2015-08-13 17:59:30
阅读次数:
129