题解列表
题解 | 3005: 糖果游戏(左右指针法简单易懂)
摘要:### 代码
```python
li = list(map(int,input().strip().split()))
lenth = len(li)
for i in rang……
动态规划——背包dp
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;
public class Main {
public static void main(String[……
C语言直接输出解就好了嘛
摘要:解题思路:注意事项:参考代码:#included<stdio.h>
int main()
{
printf("%d",1993);
return 0;
}……
2022--省--刷题统计
摘要:解题思路: 以七天为一个周期,除于判断需要几个周期,取余判断剩余题数完成需要天数是五天内还是五天外,最后将天数相加。注意事项: 第一眼想到用循环,写下来会发现超时了超时代码:#inclu……
每日一道----计算2的幂
摘要:解题思路:注意事项:主要需要注意的是pow函数返回的是double类型的数值,通过强制类型转换成int类型参考代码:#include<stdio.h>#include<math.h>int main(……
元始真解!(内涵五种方法,总有一种适合你)1060: 二级C语言-同因查找
摘要:编写题解 1060: 二级C语言-同因查找
题目描述:
求出10至1000之内能同时被2、3、7整除的数,并输出。
关键代码:(能同时被2、3、7整除的数)
```
if(i%2==0&&i……
为啥不考虑输入的四个数字不是乱序的,不能理解啊
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[4]; int i,j,k,m,t,p,q,l; cin>>m; while(m) { for(i……
吾乃元始天尊!!!1461: 蓝桥杯基础练习VIP-FJ的字符串
摘要:```cpp
#include
using namespace std;
int main()
{
string s1="A",s2;
int n,k=1;
scanf("%d",……