【2629】Identity Card 【比较坑 / 水题】

这段代码主要用于解析中国身份证号码,并根据前两位地区代码映射到对应的省份。程序读取输入的身份证数量,然后逐个解析,将地区转换为对应的省份名称,同时输出生日信息。身份证的地区码中,例如'33'代表'浙江','82'代表'澳门'等。

在这里插入图片描述

http://acm.hdu.edu.cn/showproblem.php?pid=2629

地区只要看前两位就可以了,因为地区是个大的概念后面的数字代表的是县

#include<cstdio>
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(void)
{
   
   
	
jingle@pc-ly:~/jzAlgo$ ssh -vvv climb@183.60.226.115 -p 15567 OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files debug1: /etc/ssh/ssh_config line 21: Applying options for * debug2: resolve_canonicalize: hostname 183.60.226.115 is address debug2: ssh_connect_direct debug1: Connecting to 183.60.226.115 [183.60.226.115] port 15567. debug1: Connection established. debug1: identity file /home/jingle/.ssh/id_rsa type -1 debug1: identity file /home/jingle/.ssh/id_rsa-cert type -1 debug1: identity file /home/jingle/.ssh/id_dsa type -1 debug1: identity file /home/jingle/.ssh/id_dsa-cert type -1 debug1: identity file /home/jingle/.ssh/id_ecdsa type -1 debug1: identity file /home/jingle/.ssh/id_ecdsa-cert type -1 debug1: identity file /home/jingle/.ssh/id_ecdsa_sk type -1 debug1: identity file /home/jingle/.ssh/id_ecdsa_sk-cert type -1 debug1: identity file /home/jingle/.ssh/id_ed25519 type -1 debug1: identity file /home/jingle/.ssh/id_ed25519-cert type -1 debug1: identity file /home/jingle/.ssh/id_ed25519_sk type -1 debug1: identity file /home/jingle/.ssh/id_ed25519_sk-cert type -1 debug1: identity file /home/jingle/.ssh/id_xmss type -1 debug1: identity file /home/jingle/.ssh/id_xmss-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.5 kex_exchange_identification: read: Connection reset by peer
最新发布
03-20
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值