题解 2903: 不高兴的津津 摘要:解题思路:注意事项:参考代码:hour_max = day = 0 for i in range(1, 7 + 1): hour1, hour2 = map(int, input().sp…… 题解列表 2024年03月23日 0 点赞 0 评论 422 浏览 评分:0.0
数列求和~~~~ 摘要: #include int main() { int a[35]={3,4,5,0}; int n,i; scanf("…… 题解列表 2024年03月23日 0 点赞 0 评论 383 浏览 评分:0.0
没事不要乱发明游戏 摘要: #include int main() { int n; while(scanf("%d",&n)!=EOF) { …… 题解列表 2024年03月23日 0 点赞 0 评论 464 浏览 评分:0.0
前缀和秒杀 摘要:解题思路:注意事项:边界参考代码:#include <bits/stdc++.h> #define int long long #define rep(i, j, n) for (int i = …… 题解列表 2024年03月24日 0 点赞 0 评论 463 浏览 评分:0.0
字符排列问题 c语言 摘要: 大致思路: 字符全排列问题且除去相同排列的字符,那么可以先去重,再进行排列。 此处设n为输入的n个字符,m为去重之后的字符个数 #include int…… 题解列表 2024年03月24日 0 点赞 0 评论 569 浏览 评分:0.0
小白随便写的,记录一下 摘要:看不懂可以看看这个视频:https://www.bilibili.com/video/BV1uA411N7c5?p=56&vd_source=a90641eb5a4eed71d3374febc12dd…… 题解列表 2024年03月24日 0 点赞 0 评论 458 浏览 评分:0.0
ISBN码--string 摘要:解题思路:按位计算得到检验码,与之比较参考代码:#include<bits/stdc++.h> using namespace std; void solve(){ int sum = 0…… 题解列表 2024年03月24日 0 点赞 0 评论 479 浏览 评分:0.0
1635(c语言解法) 摘要:解题思路: 1.创建数组 2.指针指向数组3.每拿到一个数据指针就往后移注意事项:参考代码:#include<stdio.h>#define maxsize 10int main(){ i…… 题解列表 2024年03月24日 0 点赞 0 评论 386 浏览 评分: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 评论 524 浏览 评分:0.0
考虑进去0和1 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ //判断一个数是否是素数 …… 题解列表 2024年03月24日 0 点赞 0 评论 473 浏览 评分:0.0