不费脑子,就是有点费手 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,&d); pri…… 题解列表 2022年10月04日 0 点赞 5 评论 413 浏览 评分:7.7
编写题解 2849: 石头剪子布 摘要:解题思路:注意事项:参考代码:ls=["Rock", "Scissors", "Paper"] #选择 def judge(S1,S2): if S1==S2: #平局 …… 题解列表 2022年10月28日 0 点赞 0 评论 817 浏览 评分:7.7
二分算法,时间复杂度O(1),虽然这个常数有点大 摘要:解题思路:就二分就行了,ans满足:ans/5+ans/25+ans/125+ans/625+...=k。这里的除的结果都是向下取整,求最小的满足这个等式的数即可。注意事项:这一题不要开O2优化,因为…… 题解列表 2022年11月05日 0 点赞 5 评论 1007 浏览 评分:7.7
2864: 单词替换 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { int n = 0; char s[10…… 题解列表 2022年11月07日 1 点赞 0 评论 682 浏览 评分:7.7
3131: 病毒(virus) 摘要:```cpp #include #include #include #include using namespace std; int n,cnt,in[50001],ans[50001]…… 题解列表 2023年01月10日 0 点赞 0 评论 718 浏览 评分:7.7
面向对象设计之时间类 (Java代码) 摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2023年01月17日 0 点赞 1 评论 700 浏览 评分:7.7
第一次发表,随便看看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n; scanf("%d",&n); for(i=2;i<n;i++) …… 题解列表 2023年02月05日 0 点赞 5 评论 734 浏览 评分:7.7
救援C++ 简单易懂,欢迎点评 摘要:解题思路:注意事项: ceil()为向上取整函数参考代码:#include<bits/stdc++.h>#include<cmath>using namespace std;int main(){ …… 题解列表 2023年03月22日 0 点赞 0 评论 683 浏览 评分:7.7
Crazy-wang小小见解 摘要:解题思路:将存在异或为x的数据区间保存到建立的二维数组中去,然后在输入区间时对区间的左右值进行大小判断,如果输入的新区间大于已经保存区间,则代表这段新区间绝对存在异或为x的两个数,故可以直接得出结论,…… 题解列表 2023年03月28日 0 点赞 10 评论 1563 浏览 评分:7.7
优质题解 倍增LCA算法 摘要:[完整题解](https://blog.csdn.net/qq_60775983/article/details/130043884) ## 试题I: 景区导游 ### 题意描述 某景区…… 题解列表 2023年04月10日 0 点赞 0 评论 2137 浏览 评分:7.7