题解列表

筛选

做题记录2022.3.10(ac:100%)

摘要:解题思路:暴力,但不完全暴力注意事项:参考代码:string = input().strip() length = len(string) max_len = float("-inf") # 参……

蛇行矩阵递归解法

摘要:解题思路:设每个数字坐标(x,y),m[x][y]为(x,y)处打印的值,观察下图: 1 3 6 10 15 2 5 9 14 4 8 13 7 12 11 举个例子: 2下面是4,左边……

2009: 第一个带类的C++程序

摘要:C++ 类的简单运用。#include <bits/stdc++.h> using namespace std; class time{     private:         int ……

圆的面积--简单

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#define pi 3.1415926using namespace std;int main()……

打印图案--简单

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