文件名称:Pongo-light-the-lamp

  • 所属分类:
  • 其他小程序
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2017-05-06
  • 文件大小:
  • 43kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 秦**
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。

介绍说明--下载内容均来自于网络,请自行研究使用

在基于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
(系统自动生成,下载前可以参看下载内容)

下载文件列表





Pongo light the lamp\Makefile.win

....................\main.c

....................\main.o

....................\reading practicing.dev

....................\reading practicing.exe

....................\reading practicing.layout

Pongo light the lamp

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org