题解 1116: IP判断

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

IP判断C++ 简单

摘要: #include #include using namespace std; bool judge(string s) { for (i……

纯纯小白做题家-直接上代码

摘要:解题思路://scanf函数的机制,scanf不同于C++里的cin,cin在遇到与变量类型不一致的字符时会自动跳过,往后面寻找符合类型的,而scanf则是遇到//不匹配的则直接结束执行。举个例子,i……

C++ 究极三目运算符

摘要:解题思路:读入字符串并判断是否符合题意。注意事项:没什么,就是想尝试一下最短代码。参考代码:#include<cstring>#include<stdio.h>int main(){     int ……

编写题解 1116: IP判断

摘要:解题思路:注意事项:参考代码:while True:    s=input()    if s==&#39;End of file&#39;:        break    a,b,c,d=s.sp……

小南解题--ip判断--62ms

摘要:&#39;&#39;&#39;2022年03月19日 19:34:06.219zgn946&#39;&#39;&#39; #循环出[0,255]范围的列表aa=[str(ii) for ii in r……

java题解1116: IP判断

摘要:```java import java.util.Scanner; public class Main { public static void main(String[] args) {……

IP判断——python

摘要:解题思路:注意事项:参考代码:while True:    try:        L = list(map(str,input().split(&#39;.&#39;)))        s = 0……