题解列表

筛选

矩阵对角线求和

摘要:解题思路:首先定义了一个 3×3 的二维整数数组  arr  。然后通过两个嵌套的  for  循环,从用户处获取 9 个整数并存储到数组中。接下来,又通过两个  for  循环计算两条对角线上元素的……

正经分解,非暴力解题

摘要:解题思路:注意事项:参考代码://解决方式还有其他更加好想的,这里只是讲一讲我的逻辑分析过程/*为了好看我把空格当成0 00*0********0***00* 需要两个for循环,因为如果是一个for……

哈哈哈哈哈哈哈呃

摘要:解题思路:                            背包模板题罢了,很简单注意事项:参考代码:#include"bits/stdc++.h" using namespace std;……

Python方法求根

摘要:参考代码:from math import * a,b,c=map(int,input().split()) m=b**2-4*a*c if m>=0:     n=sqrt(m)   ……

计算浮点数相除的余数

摘要:解题思路:注意事项:参考代码:num1,num2 = map(float,input().split())print('%g'%(num1%num2))……

1866: 三位数反转

摘要:解题思路:切片注意事项:参考代码:while True:    try:        a = input()        print(a[::-1])    except:        brea……

火焰 烧尽

摘要:解题思路:                      完全背包问题注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int n; in……

最普通的解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int strcmp_(char a[],char b[]){    int len1,len2; ……

无聊的星期五

摘要:解题思路:注意事项:#include <stdio.h> #include<stdlib.h> int main() { for (int i = 1000; i < 9999;i++) {……