2701: 蓝桥杯2022年第十三届决赛真题-取模(C/C++/Java组)(20行!!!) 摘要: import java.util.*; public class 取模 { public static void main(String[] args) { Scanner sc = …… 题解列表 2023年03月06日 0 点赞 0 评论 1229 浏览 评分:9.9
1562计算时间——JAVA版解决超时问题详解 摘要:解题思路: 题很简单,但试了好几次都超时50%,弄了半天才搞清楚哪部分超时了,主要注意下面两点: 1、算hour时,如果用/60/60的话,会超时 应改用/3600 2、采用格式化…… 题解列表 2023年03月06日 0 点赞 0 评论 490 浏览 评分:9.9
单点修改区间查询(自己写的模板) 摘要:解题思路:背板 参考代码: ```cpp //引入头文件 #include using namespace std; //定义数组长度 const int N = 1e5 + 5; /…… 题解列表 2023年03月06日 0 点赞 0 评论 379 浏览 评分:9.9
c语言题解c语言题解c语言题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<string.h>int main(){ long long i,j,n,p=0…… 题解列表 2023年03月06日 0 点赞 0 评论 512 浏览 评分:0.0
1229基础解法(Python) 摘要:解题思路:直接调用Python的math库函数即可注意事项:Python 3.9 以上版本可以直接调用math.lcm()函数,其他版本只有math.gcd()函数参考代码:from math imp…… 题解列表 2023年03月06日 0 点赞 0 评论 393 浏览 评分:0.0
LikeWater - 1678: 数据结构-双向循环链表C++(这是半成品文章,以后有时间了补齐!) 摘要:####有了线性单链表代码的经验之后,写双向链表就快多了,但我stl标准模板库还没学玩,待我学完stl里面的list之后再来补全这篇文章,里面还有少许函数没有实现,大家也可以尝试一下,下面直接附上代码…… 题解列表 2023年03月06日 0 点赞 1 评论 302 浏览 评分:9.9
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void fun(char a[]) ;int main(){ char a[4]; gets(a); fun(a); …… 题解列表 2023年03月06日 0 点赞 0 评论 379 浏览 评分:9.9
解法有很多,多思考进步才会大(简单解法) 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ int m,sum,n; scanf("%d",&m); //m肯定比n大 这样就能很…… 题解列表 2023年03月06日 0 点赞 1 评论 394 浏览 评分:9.9
2822: 求分数序列和 摘要:解题思路:注意事项:参考代码:我写的:n = int(input()) q = 2; p = 1; a = 0 for i in range(0,n): a = a + q / p …… 题解列表 2023年03月06日 0 点赞 0 评论 469 浏览 评分:9.9
2823: 计算分数加减表达式的值 摘要:解题思路:注意事项:我写的代码:n = int(input()) a, b = -1, 0 for i in range(1,n+1): b += a ** (i -1) / i …… 题解列表 2023年03月06日 0 点赞 0 评论 492 浏览 评分:9.9