题解列表

筛选

分段函数计算

摘要:解题思路:if-else语句if(表达式)     语句1;else     语句2;其语义是:如果表达式的值为真,则执行语句1,否则执行语句2 。参考代码:#include<stdio.h> ……

C语言训练——计算1977!

摘要:####解题思路 ****大数据的乘法需要用到数组来计算**** 因为乘数是小于等于1977的,即这是高精数乘低精数(高精指超大数) 高精乘低精 ![](/image_editor_upl……

模拟吧!!!

摘要:```cpp #include using namespace std; bool check_zhi(int n){ if(n < 2)return false; fo……

编写题解 2036: 散列存储

摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split()) ls=[] for i in range(m):     ls.append(list(map(int,i……

蓝桥杯算法提高VIP-分分钟的碎碎念

摘要:解题思路:读懂题目很重要,题目的意思是form[i]中保存的是念头的来源,假如form[i]中的是5,那么他的念头就进入form[5],form[5],保存的是0,那因果链就断了,因为0是没有来源的注……

充分利用有序

摘要:解题思路:有序的条件是解题的主线注意事项:参考代码:#include<stdio.h>int main(){ int a, i = 0, m = 0, k = 0, t = 0; scanf("%d"……

编写题解 2042: 杨辉三角

摘要:解题思路:注意事项:参考代码:m,n=map(int,input().split()) if m<=0:     pass else:          ls=[[1]]     for ……

没毛病吧?、老铁

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     cout<<4150<<endl; cout……