题解 2879: 错误探测 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; int b[100][100]; int c=0; int d=0; …… 题解列表 2024年04月20日 0 点赞 0 评论 337 浏览 评分:9.9
python--study||O.o 摘要:参考代码:n = int(input()) arr = list(map(str, input().split())) #dp[i]是以i为数字结尾的最长接龙子序列的长度 dp = [0] * …… 题解列表 2024年04月21日 0 点赞 0 评论 382 浏览 评分:9.9
转化为数组 摘要:解题思路:强制类型转换求和注意事项:无参考代码:for i in range(100,1000): my_str = str(i) sum = int(my_str[0]) ** 3 + …… 题解列表 2024年04月21日 0 点赞 0 评论 497 浏览 评分:9.9
题解 2907: 不与最大数相同的数字之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e5+5;typedef long long ll;in…… 题解列表 2024年04月21日 0 点赞 0 评论 198 浏览 评分:9.9
利用斐波那契数列求解 摘要:解题思路:观察发现,分母的值,从第三个分数开始,为前两个的和,分子也有类似的规律,如果纯在数列f(n) = f(n-1) + f(n-2),其中f(0) = 1,f(1)=2.则sum = f(1)/…… 题解列表 2024年04月21日 0 点赞 0 评论 281 浏览 评分:9.9
猴子吃桃的问题,五行代码 摘要:解题思路:注意事项:参考代码:N = int(input())my_list = [None] * (N-1) + [1]for i in reversed(range(1,N)): # revers…… 题解列表 2024年04月21日 1 点赞 0 评论 359 浏览 评分:9.9
题解 1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5+5;int…… 题解列表 2024年04月21日 0 点赞 0 评论 209 浏览 评分:9.9
2839:石头剪刀布 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>;using namespace std;int main(){ int n,na,nb; cin>>n>>na…… 题解列表 2024年04月22日 0 点赞 0 评论 264 浏览 评分:9.9
dfs经典马走日 摘要: ```cpp #include using namespace std; #define int long long #define endl "\n" const int N…… 题解列表 2024年04月23日 0 点赞 0 评论 277 浏览 评分:9.9
分布式队列AC做法——主要看偏移量,与元素值无关 摘要:参考代码:import java.io.*; import java.util.*; public class Main { static BufferedReader in = n…… 题解列表 2024年04月23日 2 点赞 0 评论 831 浏览 评分:9.9