题解列表

筛选

数据结构-链表的基本操作

摘要:注意: 别用gets()来获取字符串,不然会跑不通 代码:按模块编写函数即可 #include #include #include int l……

for循环实现,12行代码

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; str……

模拟过程,注意判断条件

摘要:解题思路:注意事项:参考代码:T = int(input()) for _ in range(T):     n = int(input())     matrix = [list(inpu……

[编程入门]水仙花数判断

摘要:解题思路:将三位数每一位分离出来是重点注意事项:参考代码:for i in range(100,1000):    a=i%10    b=(i%100)/10    c=i/100    if i=……

1000简单的a+b题解

摘要:解题思路:此题很简单,只需要将两个数相加即可。注意事项:并不是一组数据,而是多组,所以要用到while。重复输入输出就可以了。参考代码:#include<iostream>//所需头文件using n……

树状数组,python

摘要:解题思路:注意事项:参考代码:n=int(input())h=list(map(int,input().split()))maxh=max(h)cnt=[0]*(n)c=[0]*(maxh+2)#c[……