题解 1099: 校门外的树 摘要:解题思路:注意事项:参考代码:L, M = map(int, input().split()) trees = [1 for x in range(L+1)] for x in range(M):…… 题解列表 2024年03月23日 0 点赞 0 评论 167 浏览 评分:0.0
题解 2903: 不高兴的津津 摘要:解题思路:注意事项:参考代码:hour_max = day = 0 for i in range(1, 7 + 1): hour1, hour2 = map(int, input().sp…… 题解列表 2024年03月23日 0 点赞 0 评论 240 浏览 评分:0.0
数列求和~~~~ 摘要: #include int main() { int a[35]={3,4,5,0}; int n,i; scanf("…… 题解列表 2024年03月23日 0 点赞 0 评论 196 浏览 评分:0.0
没事不要乱发明游戏 摘要: #include int main() { int n; while(scanf("%d",&n)!=EOF) { …… 题解列表 2024年03月23日 0 点赞 0 评论 227 浏览 评分:0.0
前缀和秒杀 摘要:解题思路:注意事项:边界参考代码:#include <bits/stdc++.h> #define int long long #define rep(i, j, n) for (int i = …… 题解列表 2024年03月24日 0 点赞 0 评论 228 浏览 评分:0.0
字符排列问题 c语言 摘要: 大致思路: 字符全排列问题且除去相同排列的字符,那么可以先去重,再进行排列。 此处设n为输入的n个字符,m为去重之后的字符个数 #include int…… 题解列表 2024年03月24日 0 点赞 0 评论 329 浏览 评分:0.0
小白随便写的,记录一下 摘要:看不懂可以看看这个视频:https://www.bilibili.com/video/BV1uA411N7c5?p=56&vd_source=a90641eb5a4eed71d3374febc12dd…… 题解列表 2024年03月24日 0 点赞 0 评论 221 浏览 评分:0.0
ISBN码--string 摘要:解题思路:按位计算得到检验码,与之比较参考代码:#include<bits/stdc++.h> using namespace std; void solve(){ int sum = 0…… 题解列表 2024年03月24日 0 点赞 0 评论 170 浏览 评分:0.0
1635(c语言解法) 摘要:解题思路: 1.创建数组 2.指针指向数组3.每拿到一个数据指针就往后移注意事项:参考代码:#include<stdio.h>#define maxsize 10int main(){ i…… 题解列表 2024年03月24日 0 点赞 0 评论 183 浏览 评分:0.0
使用递归,轻松拿下 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;string t;int ans=0; bool dfs(int x,int y){ if(x…… 题解列表 2024年03月24日 0 点赞 0 评论 292 浏览 评分:0.0