日期换算--易懂版 摘要:解题思路:注意事项:参考代码:x,y = map(int,input().split()) // 设置一个列表储存2019年每月的天数,2019年是平年,2月份是28天,在最前面加个[0]是为了列表…… 题解列表 2024年04月12日 0 点赞 0 评论 483 浏览 评分:0.0
题解 2840: 向量点积计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3+5;ll …… 题解列表 2024年04月13日 0 点赞 0 评论 497 浏览 评分:0.0
2840: 向量点积计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3+5;ll …… 题解列表 2024年04月13日 0 点赞 0 评论 473 浏览 评分:0.0
求三个数的最大值 摘要:解题思路:使用三目运算符运算更加简便注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d %d %d",&a,&b,&c); …… 题解列表 2024年04月13日 0 点赞 0 评论 515 浏览 评分:0.0
优先队列(根据每次加人各项目会产生多少增益) ```cpp#include#include#includeusingnamespacestd;constintN=1e5+10;structmoney{intk,b,wcount,incre;//wcount是已经选择多少人;incre是wcount到wcount+1的增益}mon[N];doubl 题解列表 2024年04月13日 0 点赞 0 评论 597 浏览 评分:0.0
题解 2804: 与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5+5;int…… 题解列表 2024年04月13日 0 点赞 0 评论 493 浏览 评分:0.0
无聊的星期六 摘要:z=input() z=z.split() max=0 for i in range(len(z)): if len(z[max])<len(z[i]): max=i…… 题解列表 2024年04月14日 0 点赞 0 评论 634 浏览 评分:0.0
无聊的星期六 凑字数:----------------------------------------------------------------------------------------z=input()print(z+z[::-1])凑字数:------------------------------ 题解列表 2024年04月14日 0 点赞 0 评论 464 浏览 评分:0.0
编写题解 1124: C语言训练-大、小写问题 摘要:解题思路:一位一位分析看是否属于A~Z,注意事项:参考代码:int main(){ char arr[101] = { 0 }; gets(arr); for (int i = 0;…… 题解列表 2024年04月14日 0 点赞 0 评论 765 浏览 评分:0.0
1131: C语言训练-斐波纳契数列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e7;//定义常数typedef long long l…… 题解列表 2024年04月14日 0 点赞 0 评论 566 浏览 评分:0.0