九度 1203
来源:互联网 发布:js 事件对象event 编辑:程序博客网 时间:2024/06/07 07:26
#include <cstdio>#include <iostream>using namespace std;#ifdef ONLINE_JUDGE #define FINPUT(file) 0#define FOUTPUT(file) 0#else #define FINPUT(file) freopen(file,"r",stdin)#define FOUTPUT(file) freopen(file,"w",stdout)#endifint main(){ FINPUT("in.txt"); FOUTPUT("out.txt"); int n; while(cin>>n && n) { for (int i = 0; i < n; ++i) { int p1,p2,p3,p4; char c; cin>>p1>>c>>p2>>c>>p3>>c>>p4; if(p1>=0&&p1<=255&&p2>=0&&p2<=255&&p3>=0&&p3<=255&&p4>=0&&p4<=255) cout<<"Yes!"<<endl; else cout<<"No!"<<endl; } } return 0;}
0 0
- 九度 1203
- 九度oj 1203
- 九度OJ 题目1203:IP地址
- 九度OJ 1203 IP地址
- 九度oj-1203-IP地址
- 【九度OJ】1203:IP地址
- 【九度OJ】:九度OJ 1050
- 【九度OJ】:九度OJ 1053
- 【九度OJ】:九度OJ 1056
- 【九度OJ】:九度OJ 1059
- 【九度OJ】:九度OJ 1206
- 人生九度
- 九度oj1181
- 九度oj1207
- 九度oj1182
- 九度o j1026
- 九度oj1186
- 九度oj1074
- Ubuntu 12.04中文输入法的安装
- Unity3D 系统宏
- .net mvc项目搭建及注意事项
- crm2011 获取实体的ObjectTypeCode
- 基于linux 的2048
- 九度 1203
- OCP 1Z0 051 13
- 93. 就像要在要用一生去维护一般编写代码
- matlab之图像处理(2)
- highcharts和dwr实现从数据库拿数据绘图
- crm2011 获取下拉框的文本
- C++中new和malloc的区别
- 在互联网混,越分享越幸福
- Cocos2d-x 3.0正式版及android环境搭建详细教程