摘要: 这道题225里写过欸。当时逻辑就比较混乱。 这是我的代码。哇打败了95.53%的人 有一个需要注意的点,如果我把代码里 这段给删掉的话,在我想象中这也应该能合并为最后的else{}那块。但是在实践中 若test case是"}",理应输出为false,而我的代码就是没有输出结果的。 这主要是因为 如 阅读全文
posted @ 2018-04-16 05:41 吹离了空白 阅读(89) 评论(0) 推荐(0)
摘要: 做这道题之前首先要知道罗马数字的规律。 There are a few rules for writing numbers with Roman numerals. 1. Repeating a numeral up to three times represents addition of the 阅读全文
posted @ 2018-04-16 03:15 吹离了空白 阅读(176) 评论(0) 推荐(0)