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