1116: IP判断(python) 摘要:解题思路:1、EOF即为"End of file"缩写2、四个整数中不允许有前导零存在:即当数字长度大于一位时(0是可以的),第一位为0的数都是含有前导零的数参考代码:while True: t…… 题解列表 2023年01月17日 0 点赞 0 评论 322 浏览 评分:9.9
IP判断 简单易懂scanf(c语言) 摘要:解题思路:1.输入地址2.scanf函数返回正确数据个数3.吃掉输入错误的数据,跟多出来的字符4.如果没有错误字符,但是输入的正确数据不满四个就输出N5.如果没有以上情况,当满足条件时输出Y,条件不满…… 题解列表 2023年01月03日 0 点赞 2 评论 271 浏览 评分:9.9
1116:IP判断;(用了goto循环) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ char s[30],a[10],b[1…… 题解列表 2022年11月13日 0 点赞 0 评论 131 浏览 评分:0.0
IP判断,逐项判断思路清晰,变量少 摘要:解题思路: 没有说输入多少串字符串结束,结束条件是当输入End of file时结束程序 “End of file”这个字符串中间有空格,在while()中采用gets获取…… 题解列表 2022年09月18日 0 点赞 0 评论 245 浏览 评分:9.9
1116: IP判断(c++代码) 摘要:```cpp #include #include using namespace std; int main() { int q,len,t; string s; …… 题解列表 2022年09月11日 0 点赞 0 评论 249 浏览 评分:9.9
沸羊羊 C# 1116: IP判断 摘要:```cpp #include using namespace std; int main() { int a[4]={0}; string s; while(cin>>…… 题解列表 2022年08月10日 0 点赞 0 评论 183 浏览 评分:0.0
小南解题--ip判断--62ms 摘要:'''2022年03月19日 19:34:06.219zgn946''' #循环出[0,255]范围的列表aa=[str(ii) for ii in r…… 题解列表 2022年06月01日 0 点赞 0 评论 150 浏览 评分:0.0
编写题解 1116: IP判断 摘要:解题思路:注意事项:参考代码:while True: s=input() if s=='End of file': break a,b,c,d=s.sp…… 题解列表 2022年04月24日 0 点赞 0 评论 352 浏览 评分:0.0
1116: IP判断(异常 boolean标记) 摘要:```java 运用try catch 进行判断,因为题目要求必须要以数字开头,所以切分后的字符串只有可以转换成为int类型和不能转换为int类型两种,当不能转换的时候就会报错,就可以用try ca…… 题解列表 2022年04月10日 0 点赞 0 评论 417 浏览 评分:9.9
C++ 究极三目运算符 摘要:解题思路:读入字符串并判断是否符合题意。注意事项:没什么,就是想尝试一下最短代码。参考代码:#include<cstring>#include<stdio.h>int main(){ int …… 题解列表 2022年04月06日 0 点赞 0 评论 194 浏览 评分:0.0