题解列表

筛选

1049: [编程入门]结构体之时间设计

摘要:解题思路:题目主要要搞清楚什么是闰年,什么是平年,然后闰年每个月有多少天,平年每个月有多少天。注意事项:参考代码:#include <bits/stdc++.h> using namespace s……

2869: 字符串最大跨距

摘要:解题思路:注意事项:(≖͞_≖̥)参考代码:#include<iostream>#include<algorithm>#include<string.h>#include<string>using n……

自己想的思路,还请批评指教

摘要:解题思路:先创建一个数组,容量为9;将9个数字输入数组;输入需要插入的数;遍历这个数组,分两种情况(防止出现数组越界异常):(1)i == array.length - 1;(2)i < array.……

小问题 终成大错误

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

2846: 统计数字字符个数Java

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

动态规划(DP) 初学

摘要:初学DP,可能有很多不恰当的地方 ```cpp ```cpp #include using namespace std; int c[35]; int dp[35][20005]; in……

三个数的冒泡排序

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