随笔分类 - ∞.其他
摘要:2017江苏省赛的E题,当时在场上看错了题目没做出来,现在补一下…… 题目链接:http://202.197.224.59/OnlineJudge2/index.php/Problem/read/id/1264(注意在上面使用G++编译的话,请使用%I64d) Time Limit : 3000 M
        阅读全文
            
摘要:从Y1-M1-D1到Y2-M2-D2间所有日期,出现多少个9? 呃讲真,刚开始想这个题目还是很烦的,各种要考虑的情况…… 最后思考这样: 对于任何输入,设输入分别为 st.y st.m st.d ed.y ed.m ed.d ,分成三种情况: ①st.y==ed.y,两个日期出现在同一年里,直接暴力
        阅读全文
            
摘要:让我回想起了小学的时候,空瓶换饮料还能向别人借一个空瓶喝了再还回去的神奇问题…… 开始时思考,特判一下a=1或者b=1的情况为INF就可以了,然后发现2 2 1 2这样的样例也是能够喝到无穷多瓶饮料的。 所以干脆直接做循环,每次循环模拟换了饮料然后喝掉的情形,如果发现喝完空瓶子不减少或者瓶盖子不减少
        阅读全文
            
摘要:Time Limit: 10000ms Memory Limit: 262154KB 64-bit integer IO format: %lld Java class name: Main Time Limit: 10000ms Memory Limit: 262154KB 木衫同学和凌小小都是军
        阅读全文
            
摘要:花了半个小时,强行拗出一长串又臭又长的代码,把所有情况都分了(该分的,不该分的……都分了……)
        阅读全文
            
摘要:Worried School Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 112 Accepted Submission(s): 34 Pr
        阅读全文
            
摘要:感觉自己好咸鱼呀……B题写了这么久,虽然可以算作1A(忽略一次少include一个头文件的CE)…… 思想很简单,每次选定一个字符串作为目标字符串,然后把其他所有字符串都当做测试字符串,计算出总共需要的步数,再在这些计算出的步数中找到最小的那个就是答案。
        阅读全文
            
摘要:zscoder loves simple strings! A string t is called simple if every pair of adjacent characters are distinct. For example ab, aba, zscoder are simple w
        阅读全文
            
摘要:time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output time limit per test 2 seconds time limit
        阅读全文
            
摘要:Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 23060 Accepted Submission(s): 9172 Problem Descr
        阅读全文
            
摘要:刘汝佳上的题目。 刘汝佳书上的做法明显更加精简……不过刚学STL……老老实实的把四种行为做出来比较靠谱……
        阅读全文
            
摘要:题目链接:http://jnuacm.club:8080/oj/problem_show.php?pid=1032 小明喜欢把土豆块放在食物处理器中处理。长度不超过H的土豆块放入处理器中,处理器每秒处理长度为k(即土豆块长度减少k)。如果土豆块长度小于k,土豆块会被完全处理掉。 小明有n块土豆,第i
        阅读全文
            
摘要:Description A friend of you has just bought a new computer. Until now, the most powerful computer he ever used has been a pocket calculator. Now, look
        阅读全文
            
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1002 Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is t
        阅读全文
            
摘要:Description This puzzle consists of a random sequence of m black disks and n white disks on an oval-shaped track, with a turnstile capable of flipping
        阅读全文
            
摘要:Description You are the CEO of Nasty Hacks Inc., a company that creates small pieces of malicious software which teenagers may use to fool their frien
        阅读全文
            
摘要:Description Zombies love to eat brains. Yum. Input The first line contains a single integer n indicating the number of data sets. The following n line
        阅读全文
            
摘要:Description TEX is a typesetting language developed by Donald Knuth. It takes source text together with a few typesetting instructions and produces, o
        阅读全文
            
摘要:Description Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided tha
        阅读全文
            
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号