![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sicily 模拟、推理
文章平均质量分 66
xshengh
这个作者很懒,什么都没留下…
展开
-
Sicily 1029. Rabbit
高精度加法+简单推理。// Problem#: 1029 // Submission#: 2198305 // The source code is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License // URI: http://creativecommons.org/原创 2013-09-08 12:50:09 · 708 阅读 · 0 评论 -
Sicily 1036. Crypto Columns
简单模拟。// Problem#: 1036 // Submission#: 2198438 // The source code is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License // URI: http://creativecommons.org/licens原创 2013-09-08 17:20:35 · 829 阅读 · 0 评论 -
Sicily 1020. Big Integer
大数取模。将大数字符串从头到尾扫一遍,模拟平时除法运算取模的方法。// Problem#: 1020 // Submission#: 2198449 // The source code is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License // URI: http:原创 2013-09-08 17:46:15 · 816 阅读 · 0 评论 -
Sicily 1028. Hanoi Tower Sequence
国庆刷一刷。汉诺塔序列,其实就是找规律,初始化ans为1。如果数字为奇数,直接输出ans,若为偶数则除2,直到数字为奇数,每除一次ans加1。最后的答案就是ans。 // Problem#: 1028 // Submission#: 2249832 // The source code is licensed under Creative Commons Attribution-NonCom原创 2013-10-05 21:00:44 · 1242 阅读 · 0 评论 -
Sicily 1006. Team Rankings
求逆序对数,数据规模小,暴力即可。 这里还用到了STL中的组合数函数next_permutation(),顺便贴上该函数的用法:http://www.cplusplus.com/reference/algorithm/next_permutation/ #include #include #include #include #include #include #include原创 2013-10-06 15:37:40 · 911 阅读 · 0 评论 -
Sicily 1093. Air Express
水题,简单模拟。 // Problem#: 1093 // Submission#: 2250427 // The source code is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License // URI: http://creativecommons.org/l原创 2013-10-06 15:40:29 · 932 阅读 · 0 评论