题解 2791: 计算邮资 摘要:```cpp#includeusing namespace std;int main() { int n; char y; cin >> n >> …… 题解列表 2025年03月16日 0 点赞 0 评论 246 浏览 评分:0.0
题解 2836: 数组逆序重放 摘要:解题思路:在正向循环后需要有有一个反向循环注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long l…… 题解列表 2025年03月16日 0 点赞 0 评论 301 浏览 评分:0.0
2836: 数组逆序重放题解 摘要:解题思路:注意事项:参考代码#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e7;…… 题解列表 2025年03月16日 0 点赞 0 评论 262 浏览 评分:10.0
2836: 数组逆序重放题解 摘要:解题思路:注意事项:参考代码#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e7;…… 题解列表 2025年03月16日 0 点赞 0 评论 250 浏览 评分:0.0
编写题解 1997: 日期换算 摘要:解题思路:使用月份数组注意事项:输出时不只要输出sum,还要输出y。参考代码:#include <bits/stdc++.h>using namespace std;typedef lon…… 题解列表 2025年03月16日 0 点赞 0 评论 149 浏览 评分:0.0
1997: 日期换算题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e7…… 题解列表 2025年03月16日 0 点赞 0 评论 131 浏览 评分:0.0
(C++)题号1004:[递归]母牛的故事(可借鉴思路) 摘要:### 审题##### 题目说:“有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。”其中应该要知道的是:1.母牛最开始的一年里不生小母牛;2.小母牛…… 题解列表 2025年03月16日 22 点赞 0 评论 1381 浏览 评分:10.0
链表的基本操作(代码记录) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;//数字链表结点定义typedef struct Num{  …… 题解列表 2025年03月15日 0 点赞 0 评论 261 浏览 评分:0.0
sort+lambda x: (conditionA, conditionB, ...), reverse=True) 摘要:解题思路:注意事项:参考代码:n = int(input())Lis = []for i in range(n): lis = list(map(int, input().s…… 题解列表 2025年03月15日 0 点赞 0 评论 276 浏览 评分:10.0
二分+贪心+前缀和 摘要:```pythonn,x = map(int,input().split())x = 2*xh = list(map(int,input().split()))s = [0]*nf…… 题解列表 2025年03月15日 0 点赞 0 评论 459 浏览 评分:0.0