题解列表

筛选

巧用break怒干最小

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int a, b, c; cin >> a >> b >> c; ……

c++ 40多行简单版

摘要:解题思路:创建链表删除所要求数据。注意事项:此为头插法,最后用数组来重新输出参考代码:#include<iostream>using namespace std;struct Data{    int……

三个数找最大值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; int max; scanf("%d%d%d",&a,&b,&c); max=a; if(……

15行代码写完

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     int a,b;     while(cin>……

1058: 二级C语言-求偶数和

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,s=0; scanf("%d",&n); int a[n]; for(int i=0;i<n;i++……

1868: 装包装箱问题

摘要:解题思路: 箱子严格按由大到小装       6- 5-4-3-2-1                                                      &nb

charAt之字符串反转

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

c++解题思路

摘要:```cpp #include using namespace std; struct time { int year; int month; int day; };……
优质题解

最长上升子序列(贪心+二分)

摘要:线性DP(O(n^2)):[传送门](https://blog.dotcpp.com/a/91960 "动态规划") ------------ ## 贪心+二分(nlogn) ##### *……