JS implements the last digit when the ID card number is 15 to 18 charactersAlgorithm
According to the provisions on the national identity number in the National Standard GB 11643-1999 of the People's Republic of China, the national identity number

Now we use all 18-digit ID card numbers, and the previous 15-digit ID card numbers. How can we convert a 15-digit ID card number to an 18-digit ID card number?
1. First, after 6th digits of the 15-digit ID card, "19" is changed to 17 digits, that is,

Function: Upgrade the ID card number of 15 to 18 characters (according to GB 11643-1999)
Parameter: original number (15 digits)
Return Value: the 18-digit number after the upgrade.
Usage: = idcode (A1) (assuming that A1 contains the original

ID number 15, 18 digits.
ID 18-bit authentication
The 18-digit ID standard is clearly stipulated in the gb11643-1999 "citizenship number", which was implemented by the National Quality and Technical Supervision Bureau on July 1, 1999. Gb11643-1999

This article mainly introduces how to generate a unique number in PHP. In this article, convert the hexadecimal value to 36 to obtain more than 60 million unique numbers that are not repeated, with the number of digits being 10 digits, if you need a

This article mainly introduces how to generate a unique number in PHP. in this article, convert the hexadecimal value to 36 to obtain more than 60 million unique numbers that are not repeated, with the number of digits being 10 digits, if you need a

When we want to numbers a large number of data, there is a limit on the number of digits, such as a five-digit license plate number, a ten-digit license number, order serial number, and a short URL, we can use the 36-digit system to calculate

(C syntax, question 21) four-digit integer, four-digit syntax
Knowledge point:
For statement, if statement flexible use
Content: program to find the number of relationships in the four-digit integer abcd that meet the following requirements: (AB +

Huawei trial-outputs a single digit and a single digit, While Huawei outputs a single digit
Two solutions:
1. Add one by one
# Include # include using namespace std; int main () {int s; cin> s; int sum = 0; while (s! = 0) {sum = sum + s % 10

Because I needed to perform the escalation, verification, and query of the 15-digit old ID card number, and did not find any ready-made functions, I wrote a simple process and hoped to help my friends.This function has a single function and can only

Hdu 1066 Last non-zero Digit in N! (Number Theory -- n! ), Hdunon-zero
Last non-zero Digit in N!
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission (s): 6432 Accepted Submission (s): 1593
Problem

(Hdu step 1.2.8) Specialized Four-Digit Numbers (calculate the sum of Numbers on each Digit), hdu1.2.8
Question:
Specialized Four-Digit Numbers
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)

What is the vampire number.
A vampire number is a number that has an even number of digits, and can be multiplied by a pair of numbers, and this pair of digits contains the half digits of the product,
The number that is selected from the initial

Jiang Yongjiang Altera Cup National Graduate Electronic Design Competition has a simple question of "representing-37 as a three-digit complement code. The instructor with a score raised an objection to the answer as soon as he came up, believing

Topic links Topic: Of the 9 numbers obtained by the first digit of the permutation, six are prime numbers: 13,23,43,53,73 and 83. By replacing the third and fourth digits of the 56**3 with the same number, this five-digit number is the first number

Python generates a 6-digit verification code at random, and python generates a 6-digit verification code.
1. Generate source code
Copy codeThe Code is as follows:#-*-Coding: UTF-8 -*-
Import random
Def generate_verification_code ():''' A 6-digit

POJ 2196 Specialized Four-Digit Numbers, pojfour-digit
At the beginning, I wrote questions on POJ .... A few questions first, hey
DescriptionFind and list all four-digit numbers in decimal notation that have the property that the sum of its four

Function checkidcard (strnumber){// ID card number format Function// The citizenship number is a feature combination code,// The Order is from left to right: six-digit address code, eight-digit birth date code, three-digit sequence code, and

1. Question (from Rosen, "Elementary number theory and its application" 6th P99 5th)The last two decimal digits (bits and 10) that prove the total square number must be one of the following: {xx, E1, E4, O6, E9}Note: E = even number, O = prime

Match the 18-bit ID number and the regular expression is as follows:/^[1-9][0-9]{5} (19|20) [0-9]{2} ((01|03|05|07|08|10|12) (0[1-9]|[ 1-2][0-9]|31) | (04|06|09|11) (0[1-9]| [1-2] [0-9]|30] |02 (0[1-9]|[ 1-2][0-9])) [0-9]{3} ([0-9]|x| X) $/Note: Now

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.