L1-016 查验身份证
时间: 2023-10-04 21:11:47 浏览: 123
L1-016 查验身份证是一道水题,属于PAT (Programming Ability Test)的题目之一。这道题主要考察的是对字符串的处理和校验算法。根据输入的身份证号码,我们需要判断这些号码是否合法。具体要求是判断前17位是否全为数字且最后一位的校验码计算准确。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [cccc-gplt:团体程序设计天梯赛:https](https://download.csdn.net/download/weixin_42132598/18579131)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [L1-016 查验身份证 (15 分)](https://blog.csdn.net/zoroly/article/details/120028213)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文