PHP Extract the birthday date in the ID number and verify whether it is an adult function, ID number adult
PHP extracts the birthday date from the ID number and determines whether a function is adult. Can be determined at the same time 15-bit and 18-bit ID card, by my pro-test, very useful, share the function code as follows:
Use the following:
Copy the Code code as follows:Getidcardinfo (' ID card number
Using PHP to extract the birthday from the ID card, PHP ID extract Birthday
Use PHP to extract birthdays from your ID, including 15-and 18-bit IDs
function Getidcardinfo ($IDCard, $format =1) {$result [' Error ']=0;//0: Unknown error, 1: Identity card format error, 2: Error-free $result [' flag ']= ';//0 marked adult , 1 indicates underage $result [' tdate ']= ';//birt
18th birthdayTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission (s): 10990 Accepted Submission (s): 3504
Problem DescriptionGardon's 18-year-old birthday is coming soon. Of course, he is very happy, but he suddenly thought of a question: is it true that everyone has gone through the same number of days from birth to 18-year-old birthday? This does not seem to be
Use php to get a series of clues (constellation, Zodiac, birthday, etc.) from the ID card number, php ID card number
The first example of this article is to share with you that PHP automatically obtains the corresponding constellation functions based on the ID card number for your reference. The specific content is as follows:
Second Instance: UsePhp extracts the birthday from the ID card, including 15-di
Birthday, we generally like to order a birthday cake, dinner, lit candles, in the "Happy Birthday to You" in the song to the birthday of the people with the most beautiful blessings. Below we will use 3DsMAX to make a three-dimensional birthday cake.
Production tools: 3dsma
This article describes the JS based on the birthday of the age of the method. Share to everyone for your reference. The implementation methods are as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26-27--28 29---30 31--32 33 34 35 36 37 38-39 40 41 42 45 46 47 48 49 50 51 52
function parsedate (str) {if (Str.match (/^d{4}[-/s+]d{1,2}[-/s+]d{1,2}$/)) { return new Date (Str.replace (/[-/s+]/i, '/')); else
This article mainly introduces the age calculation method of php based on birthday. it involves the related skills of php operation date and string, which is very simple and practical, for more information, see the example in this article. Share it with you for your reference. The details are as follows:
I hope this article will help you with php programming.
HDU 4430 Yukari's Birthday, hduyukari
Given n, Let n meet the following expression: k ^ 1 + k ^ 2 +... + k ^ r = n. and r * k is the smallest. (Ps: And it's optional to place at most one candle at the center of the cake. So k ^ 0, that is, 1 is dispensable. But this is not a circle, so when n = 30 and n = 31, their r is equal) for example: 2 ^ 1 + 2 ^ 2 + 2 ^ 3 + 2 ^ 4 = 30. n = 30, r = 4, k = 2. (When n = 31, r is 4, and k is 2) so there is a general
This is a created
article in which the information may have evolved or changed. Google go language recently ushered in the 3 birthday.
Google first announced the launch of the Go Language program in November 2009 , and as of today, hundreds of external contributors have joined and contributed, and a number of organizations or institutions have begun to move to the go language, including the BBC Worldwide, Canonical, CloudFlare, Heroku, Novartis, So
this, and since 1994 they have started to apply oak technology to the web and have developed the first version of HotJava. When Sun was officially launched in 1995 with the name Java, almost all Web developers felt: Oh, that's what everyone wants. So where does Java's name come from, it is said that one day, members of several members of the Java group are discussing what to name the new language, when they were drinking Java coffee in a café, and a man brainwave said it was Java, and was prais
DP, the state is F[I][J][K1][K2], for the first person, with J Boys, the suffix of boys more than the number of girls in the maximum value of K1, girls more than the number of boys maximum is k2.k1,k2 State transition equation F[i][j][k1][k2] = f[i-1][j-1][k1+1][k2-1] + f[i-1][j][k1-1][k2+1]. The premises are legal. The answer is F[N+M][N][K1][K2]. 0 Need to use a scrolling array, the last launch of Next, because swap, became cur, so the output is cur. #include #include#includeusing namespacestd
Deep Search + several pruning.Looks like the search order is also very important ... I don't know if it's because of this and the tle has been a long time ...#include #include#include#include#include#include#include#include#defineRep (I, L, R) for (int i=l; i#defineDown (i, L, R) for (int i=l; i>=r; i--)#defineMAXN 23#defineMAX 1using namespacestd;intN, M, ans, MINV[MAXN], MINS[MAXN];voidSearch (intVintSintLintRintH) { if(!l) {if(v = = N s ans) ans=s; return; } if(s+mins[l-1] >= ans | | v
Click to collect offer Click to collect offer Click to view line pick-up clothing contact informationSign up for a new member of Vv193.comDeposit can get benefits:Save 300 and get 1500 times times the flow of money to withdraw your offerSave 200 and get 1006 times times the flow of money to withdraw your offersave 50 and get 585 times times the flow of money to withdraw your offer can be played in the AG platform (Ring Asia), MG platform betting codeMail Service: Free
Topic Link: Click to open the linkTest instructions: gives the ground radius and height of n cylinders, requires only one to be placed directly on the table, the other to be placed on top of him, the first I can be placed on the top of the condition is: when and only if the volume of the first I is greater than J and J Idea: A look is a DP, and the state is very easy to say, D[i] to the first I can get the largest total volume. Transfer to Max (D[j]) + A[i], (J See the code for details:#include
Happy Birthday!
I am a hot dog, not cooked, not flat, not stir-fried, a piece of copper peas, everyone who teaches you to drill into him continuously, not enough, don't open, don't take off, slow melting multi-layered brocade pullover. I am playing with Liang yuanyue, I drink Tokyo wine, enjoy Luo yanghua, and climb Zhang tailiu. I can also go, play games, break through, insert science, dance, play, swallow, and recite poems.
---- Guan Hanqing
Look
Original title Link http://acm.hdu.edu.cn/showproblem.php?pid=5410Because he gets an AI candy for every item he buys, he gets bi sugar for every item he buys. There are two values: So we should first use a 01 backpack to unify the two values ... Because each item in the 01 backpack can only be taken once .... Then we use multiple backpacks to decide which items we should buy more of the most candy .... ==#include #includestring.h>#include#includeusing namespacestd;Const intmaxn=1010; __int64 dp[
Title: http://www.lydsy.com/JudgeOnline/problem.php?id=1293Record the color of each point and the coordinates of the previous color point, and then, after discretization, the endpoint of the enumeration is swept forward again.#include #include#include#include#include#include#defineRep (i,l,r) for (int i=l;i#defineDown (i,l,r) for (int i=l;i>=r;i--)#defineCLR (x, y) memset (x,y,sizeof (×))#defineLow (x) (x (×))#defineMAXN 1005000#defineINF Int (1E9)#defineMM 1000000007#definell Long Longusing nam
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.