蓝桥杯算法提高VIP-剪刀石头布(c 摘要:参考代码:#include<stdio.h> int main() { enum display{stone=0,scissors,cloth}a,b; enum result{lose=…… 题解列表 2022年02月09日 0 点赞 1 评论 491 浏览 评分:9.9
编写题解 1996: 元素配对 摘要:思想: 将X、Y两个数据分别保存在两个列表s1、s2中 --> s1降序排序,s2升序排序 --> s1中最大的减最小的,最小的减最大的(即最大的数-最小的数的绝对值之和最大) ```python…… 题解列表 2022年02月09日 0 点赞 0 评论 313 浏览 评分:0.0
取巧化数法 摘要:解题思路: 把单词化为数字存入数组注意事项:只是一种取巧的我自己想到的算法,有很大的漏洞,当实用于一般 的大多数情况参考代码:#include<stdio.h>int main(){ char s[…… 题解列表 2022年02月09日 0 点赞 0 评论 392 浏览 评分:0.0
1466: 蓝桥杯基础练习VIP-字符串对比 摘要:方法一: ```c #include #include #include void main() { char arr[10], brr[10]; scanf("%…… 题解列表 2022年02月09日 0 点赞 0 评论 363 浏览 评分:9.9
时间超限解决方案 摘要:解题思路:相信大部分人卡在了时间超限这儿,实际上就是判断质数时的比较次数太多了,如下给出解决注意事项:参考代码:#include<stdio.h>int judge(int n){ int a=1; …… 题解列表 2022年02月09日 1 点赞 0 评论 843 浏览 评分:6.3
python-回文日期 摘要:解题思路:采用循环,数据较大。不建议。直接构造回文日期,可以知道每年最多有一个回文日期。进行查找即可。注意事项:参考代码:s = input().strip() y = int(s[:4]) …… 题解列表 2022年02月09日 0 点赞 0 评论 1200 浏览 评分:9.9
编写题解 1138: C语言训练-求矩阵的两对角线上的元素之和 代码可能写的不是特别好还请谅解 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main () { int N; scanf("%d",&N); in…… 题解列表 2022年02月09日 0 点赞 0 评论 592 浏览 评分:9.9
连续自然数和(第一想法就是暴力解决) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>#include<cstring>#include<set>#include<string>#inc…… 题解列表 2022年02月09日 0 点赞 0 评论 322 浏览 评分:0.0
只ac一半,我不理解,不用string头文件 摘要:解题思路:遍历字符串注意事项:判断字符串结尾参考代码:#include <stdio.h>int main() { char a[10010]; gets(a); int s = 0, b = 0, …… 题解列表 2022年02月09日 0 点赞 0 评论 331 浏览 评分:0.0
Hifipsysta-1771-[编程入门]链表之节点删除(C++代码) 摘要:```cpp #include using namespace std; struct node{ int id; int score; node* next;…… 题解列表 2022年02月09日 0 点赞 1 评论 334 浏览 评分:9.9