IP判断(JAVA语言) 摘要:具体代码如下:import java.util.Scanner; public class ContestUsing { public static void main(String[…… 题解列表 2021年02月23日 0 点赞 0 评论 130 浏览 评分:0.0
IP判断正则表达式-题解(Python代码) 摘要:解题思路:正则匹配通式 ^((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}$注意事项:- 注意…… 题解列表 2021年03月28日 0 点赞 0 评论 292 浏览 评分:0.0
简单易懂啊铁汁们 摘要:解题思路:看到输入输出,首先就想到用一个列表来存放每一行判断后的结果,最后再输出注意事项:注意在处理输入的时候,a.b.a.c这样的是不能转换为整数的,需要直接排除,这里我用try...except做…… 题解列表 2021年04月06日 0 点赞 0 评论 211 浏览 评分:0.0
IP判断---------------------------------- 摘要:解题思路:注意事项:参考代码: #include "stdio.h"int main() { char S[100]; int a=0; while (scanf("%s", S)!=EOF) { …… 题解列表 2021年08月02日 0 点赞 0 评论 221 浏览 评分:0.0
1116: IP判断(C++代码) 摘要:#include <iostream> #include <string> using namespace std; //判断ip是否合法 bool isLegal(string i…… 题解列表 2021年08月19日 0 点赞 0 评论 176 浏览 评分:0.0
两种方法(C++) 摘要:解题思路:注意事项:参考代码:1.#include<iostream> #include <algorithm> #include <string> using namespace std;…… 题解列表 2021年08月21日 0 点赞 0 评论 152 浏览 评分:0.0
题解 1116: IP判断 摘要:解题思路:巧用scanf函数的返回值来实现循环注意事项:取反是当返回值为-1的时候取反为1,循环结束参考代码:#include<stdio.h>int main(){ int a,b,c,d,k; c…… 题解列表 2021年10月15日 0 点赞 0 评论 261 浏览 评分:0.0
IP判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int a,b,c,d; int k; char s[10…… 题解列表 2021年11月17日 0 点赞 0 评论 391 浏览 评分:0.0
c语言巧妙解答 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[40]; int i,n; while(~s…… 题解列表 2021年12月13日 0 点赞 0 评论 224 浏览 评分:0.0
编写题解 1116: IP判断 摘要:解题思路:把.作为分隔,分别判断字符串是不是属于0-255注意事项:参考代码:while True: try: n = input() ls=[] if…… 题解列表 2021年12月15日 0 点赞 0 评论 360 浏览 评分:0.0