题解列表
c++ STL解法,用上vector容器
摘要:#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
int……
2787有一门课不及格的学生题解(c++)
摘要:#include
using namespace std;
int main(){
int a;
int b;
cin>>a>>b;
if (a……
1.5s时间超限 深度优先搜索 c语言
摘要:解题思路:通过深度优先搜索,找到以初始字符为开头的最长数字(字符串),通过比较最长数字与当前数字得出最终结果注意事项:时间超限记得每次退格的时候把当前数字的最后一位去掉参考代码:#include <s……
2790: 分段函数
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
doubl……
原神andc++萌新出品 题解:1267: A+B Problem
摘要:原神 启动!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!参考代码: #include<iostream>using namespace std;int main(){ ……
DFS+递归(这题花费我太长时间,仅仅留做纪念,刚接触,大佬勿喷!!!)
摘要:解题思路:DFS注意事项:以后的每一项都要比当前的数大参考代码:#include<iostream>using namespace std;int n;int a[100]={1};void dfs(……
11231231231241232131
摘要:解题思路:1注意事项:1参考代码:import java.util.Scanner;public class Main { public static void main(String[] args)……
我这个有问题,有大佬吗帮忙看看
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i=2,count=0,c=0; scanf("%d",&a); /……