题解 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
C语言判断ip合法简洁方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[30]; int a,b,c,d,i; int flag=…… 题解列表 2021年12月18日 0 点赞 0 评论 343 浏览 评分:0.0
分块思想(C语言代码) 摘要://最简单的思想 将ip地址中的四个部分以此判断 #include #include #include int judgenumber(char *part)//判断数组中的数字是否符合题意…… 题解列表 2022年01月09日 0 点赞 0 评论 254 浏览 评分:0.0
易懂 IP判断 函数遍历处理判断 摘要:解题思路: 输入函数nextLine每次获取单行字符串,string.split()分割需要注意在符号前加“\\”表示转义, split函数返回值是字符串数组,例:stri…… 题解列表 2022年01月15日 0 点赞 0 评论 185 浏览 评分:0.0
java 简单易懂的思路 摘要:import java.util.*;public class Main{ public static void fun(String[] s){ boolean flag=tru…… 题解列表 2022年01月19日 0 点赞 0 评论 176 浏览 评分:0.0
解决通过读取字符时,既判度换行判断结尾 摘要:#include#include#includeint main(){ int a; char c = 0;//按字符读. int state; int flag = 0;//是否为真…… 题解列表 2022年01月23日 0 点赞 0 评论 162 浏览 评分:0.0
利用正则表达式解题,简单,粗暴,重要的是还很快 摘要:解题思路:不懂正则表达式的可以去CSDN搜索该博客,有详细资料,包你看完就秒懂正则表达式注意事项:https://mp.csdn.net/mp_blog/creation/editor/1227341…… 题解列表 2022年01月30日 0 点赞 0 评论 203 浏览 评分:0.0