
模拟
文章平均质量分 91
算法,模拟专题
来老铁干了这碗代码
算法爱好者 终生学习践行者 雨雪刀霜阻不住 不成大神誓不休
展开
-
【题意+分析】1071 Speech Patterns (25 分)_27行代码AC
立志用最少的代码做最高效的表达 PAT甲级最优题解——>传送门 People often have a preference among synonyms of the same word. For example, some may prefer “the police”, while others may prefer “the cops”. Analyzing such patterns can help to narrow down a speaker’s identity, which原创 2021-02-28 16:35:02 · 549 阅读 · 1 评论 -
【最详细的分析】1061 Dating (20 分)
立志用最少的代码做最高效的表达 PAT甲级最优题解——>传送门 Sherlock Holmes received a note with some strange strings: Let’s date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out that those strange strings are actually refe原创 2021-02-27 00:02:00 · 625 阅读 · 0 评论 -
【科学计数法模板讲解】1060 Are They Equal (25 分)
立志用最少的代码做最高效的表达 PAT甲级最优题解——>传送门 If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123×105 with simple chopping. Now given the number of significant digits on a原创 2021-02-25 20:28:09 · 426 阅读 · 0 评论 -
【附超时原因】1055 The World‘s Richest (25 分)_42行代码AC
立志用最少的代码做最高效的表达 Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world’s wealthiest people. Now you are supposed to simulate this job, but concentrate only on the people in a certain range of ages. That is,原创 2021-02-24 18:09:11 · 758 阅读 · 0 评论 -
14行代码AC_Zero Array(思维)
立志用更少的代码做更高效的表达 You are given an array a1,a2,…,an.In one operation you can choose two elements ai and aj (i≠j) and decrease each of them by one.You need to check whether it is possible to make all the elements equal to zero or not. Input The first line原创 2020-11-18 18:30:47 · 772 阅读 · 0 评论 -
30行代码AC_HDU-5933 ArcSoft‘s Office Rearrangement(模拟+题解报告)
励志用更少的代码做更高效的表达 ArcSoft, Inc. is a leading global professional computer photography and computer vision technology company. There are N working blocks in ArcSoft company, which form a straight line. The CEO of ArcSoft thinks that every block should have原创 2020-10-18 16:14:25 · 701 阅读 · 0 评论