题解列表

筛选

不用链表合并

摘要:参考代码:#include<iostream>#include<map>#include<vector>#include<algorithm>using namespace std;map<int, ……

易懂 IP判断 函数遍历处理判断

摘要:解题思路:        输入函数nextLine每次获取单行字符串,string.split()分割需要注意在符号前加“\\”表示转义,        split函数返回值是字符串数组,例:stri……

[编程入门]阶乘求和(c++)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ long long a=1, sum=0,n=0;//long lon……

成绩转换(JAVA)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static void main(String[] args……

1072: 汽水瓶

摘要:解题思路:注意事项:参考代码:while True:     try:         n = int(input())         if n == 0:       &n

自定义函数之字符提取

摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "string.h"main(){ char a1[81]; int i,n; gets(a1); n=strlen……

二级C语言-计算素数和

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main10 {    public static void main(String[] ar……

1221: 数列问题

摘要:```python s=int(input()) def f(n): if n==1: return 3 if n==2: return 4……

自定义函数之数字分离

摘要:注意:scanf_s("%c", &a[i],1)表示最多读取1-1个字符; 同理scanf_s("%c", &a[i],4)表示最多读取4-1个字符。 ```c #include ……