蓝桥杯2013年第四届真题-错误票据-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:/*思路: 已知id顺序选取,则将数输入存储(空格,换行处理如下),并排序 然后,遍历数组,若相邻数组元素差值为0(重号) 若相邻数组元素差…… 题解列表 2020年11月24日 0 点赞 0 评论 265 浏览 评分:0.0
蓝桥杯2013年第四届真题-错误票据 (C语言代码) 摘要:解题思路:以票号为key建立无序表,hash值为0就是缺少票号,为2就是重复票号。在获取输入的同时进行查找起始票号以及票的个数。注意事项:使用EOF来结束输入,在CMD命令行中,按住Ctrl+Z,回车…… 题解列表 2019年03月14日 0 点赞 0 评论 405 浏览 评分:0.0
蓝桥杯2013年第四届真题-错误票据-题解(C++代码) 摘要:````cpp #include #include using namespace std; int main() { int a[100], N; int count = …… 题解列表 2019年12月10日 0 点赞 0 评论 273 浏览 评分:0.0
蓝桥杯2013年第四届真题-错误票据 (C++代码) 摘要:解题思路:排序,然后比较。参考代码:方法1:输入时要按ctrl+Z才能结束。#include<bits/stdc++.h> using namespace std; const int N=100…… 题解列表 2018年10月21日 0 点赞 1 评论 262 浏览 评分:0.0
蓝桥杯2013年第四届真题-错误票据-题解(C语言代码),24行 摘要:```c #include int cmp(const void *a,const void *b){//自定义排序函数 return *(int *)a - *(int *)b; } …… 题解列表 2020年01月03日 0 点赞 0 评论 259 浏览 评分:0.0
暴力求解,菜鸟级别的 摘要:解题思路:暴力注意事项:参考代码:#include<stdio.h>int main(){ int n,a[100002]={0},q=0,min=100000,max=-1,x,m1,m2; sca…… 题解列表 2022年03月16日 0 点赞 0 评论 480 浏览 评分:0.0
蓝桥杯2013年第四届真题-错误票据-题解(C语言代码) 摘要:```cpp #include using namespace std; int main(){ int n,temp,i; int que,chong; int hash[1000…… 题解列表 2020年09月28日 0 点赞 0 评论 249 浏览 评分:0.0
蓝桥杯2013年第四届真题-错误票据 (C语言代码) 摘要:解题思路:这题先排序,再找。用快排冒泡选择都可以。注意事项:参考代码:#include<stdio.h> #include<stdlib.h> void bubblesort(int a[],in…… 题解列表 2019年03月23日 0 点赞 0 评论 548 浏览 评分:0.0
一位热心的老大爷-题目分析-]错误票据-题解(C语言代码) 摘要:题目关键点: 1.正确的票据是连续的正整数 2.错误的票据是有一个数错误,导致1个断码和1个重复。且错误点不在最小值和最大值上 解题思路:两种 法1: 建立一个数组,将输入的数作为数组的…… 题解列表 2019年12月20日 0 点赞 0 评论 218 浏览 评分:0.0
蓝桥杯历届试题-错误票据 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ int num[10000], m = 0; char s[10100]; int n, i, j, k…… 题解列表 2018年02月01日 1 点赞 0 评论 1026 浏览 评分:0.0