文件名称:Pongo-light-the-lamp
-
所属分类:
- 标签属性:
- 上传时间:2017-05-06
-
文件大小:43kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在基于Internet的程序中,我们常常需要判断一个IP字符串的合法性。
合法的IP是这样的形式:
A.B.C.D
其中A、B、C、D均为位于[0, 255]中的整数。为了简单起见,我们规定这四个整数中不会有前导零存在,如001这种情况。
现在,请你来完成这个判断程序吧^_^
Input
输入由多行组成,每行是一个字符串,输入由“End of file”结束。
字符串长度最大为30,且不含空格和不可见字符。
Output
对于每一个输入,单独输出一行
如果该字符串是合法的IP,输出YES,否则,输出NO
-In an internet-based program, we often need to determine the legality of an IP string.
Legitimate IP is the form:
A.B.C.D
A, B, C, and D are all integers in [0, 255]. For the sake of simplicity, we specify that no leading zero exists in these four integers, as in 001.
Now, please to complete the judgment procedure ^_^
The Input
The input consists of several lines, each of which is a string, and the input is terminated by the End of file .
The length of the string is up to 30, with no Spaces and no visible characters.
The Output
For each input, a single output row
If the string is legal IP, output YES, otherwise, the output NO
合法的IP是这样的形式:
A.B.C.D
其中A、B、C、D均为位于[0, 255]中的整数。为了简单起见,我们规定这四个整数中不会有前导零存在,如001这种情况。
现在,请你来完成这个判断程序吧^_^
Input
输入由多行组成,每行是一个字符串,输入由“End of file”结束。
字符串长度最大为30,且不含空格和不可见字符。
Output
对于每一个输入,单独输出一行
如果该字符串是合法的IP,输出YES,否则,输出NO
-In an internet-based program, we often need to determine the legality of an IP string.
Legitimate IP is the form:
A.B.C.D
A, B, C, and D are all integers in [0, 255]. For the sake of simplicity, we specify that no leading zero exists in these four integers, as in 001.
Now, please to complete the judgment procedure ^_^
The Input
The input consists of several lines, each of which is a string, and the input is terminated by the End of file .
The length of the string is up to 30, with no Spaces and no visible characters.
The Output
For each input, a single output row
If the string is legal IP, output YES, otherwise, the output NO
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Pongo light the lamp\Makefile.win
....................\main.c
....................\main.o
....................\reading practicing.dev
....................\reading practicing.exe
....................\reading practicing.layout
Pongo light the lamp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.