题解列表
求问大佬,为啥时间超限了
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { long int i, a, b, t; int c = 0, max = 0; int m = 0, k;……
C语言训练-大、小写问题 为什么不能 gets(a); strlwr(a);这样写?
摘要:解题思路:注意事项:参考代码: &nb
[STL训练]Who's in the Middle
摘要:```cpp
#include
using namespace std;
#include
#include
bool cmp(int a,int b){
return a < b;……
动态规划-最长上升子序列模型,注意前一次和后一次的美味度可相等!
摘要:#include<iostream>using namespace std;const int N=1005;int a[N],dp[N];int main(){ int n; cin>>……
蓝桥杯算法训练VIP-数的统计
摘要:#include<iostream>#include<algorithm>using namespace std;const int N=1005;int arr1[N];int arr2[N];in……
应该是对于初学者来说最好理解的
摘要:解题思路:注意事项:参考代码:import java.util.ArrayList;import java.util.Scanner;//写一函数,输入一个四位数字,要求输出这四个数字字符,但每两个数……
很普通的方法,不算短,也不算长,认值看能懂得。
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;
public class Main{
public static void main(String[] args……
[STL训练]A+B 不用 stringstream也可以做
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string fun(std::string s){ while(1){ ……
Hifipsysta-2048-多重背包(C++代码)
摘要:```cpp
#include
using namespace std;
const int maxLen = 3e3+10;
int weight[maxLen];
int value[……