1454: 蓝桥杯历届试题-蚂蚁感冒——纯模拟 #include#include#include#include#include#include#includeusingnamespacestd;intmain(){intn;cin>>n;inta[n][2];for(inti=0;i>a[i][0];}a[0][1]=1;while(true){ 题解列表 2023年03月16日 0 点赞 0 评论 630 浏览 评分:0.0
求阶乘-二分查找-求阶乘中某质因子个数(java) 摘要:解题思路: 只需要知道2和5可以组成一个零,并且2的数量总会比5多,所有只需要求解阶乘中质因数5的个数就可以求出阶乘中后导零的个数 所以问题变成了:求阶乘中某质因子个数: 只…… 题解列表 2023年03月16日 0 点赞 0 评论 942 浏览 评分:6.7
1051:结构体之成绩统计2--- 参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);inta=scanner.nextInt();intA=0, 题解列表 2023年03月16日 0 点赞 0 评论 574 浏览 评分:0.0
利用绝对坐标解题 解题思路:利用绝对坐标,东西方向只有x轴变化,其他4个方向则是x变化0.5,y变化1,xy的方向是可以直接由d的值计算出来的,将它存在x和y的数组里(参考下面的代码)。因为在y轴方向上的移动不是平行于y轴的,所以每次在y轴方向上移动1都会附带的在x轴上移动0.5, 题解列表 2023年03月16日 0 点赞 0 评论 1066 浏览 评分:9.9
编写题解 1051: [编程入门]结构体之成绩记录2 在结构体内部的命名搞混了,```c#include#includestructstu{charnum[10];charname[20];intscr[3];//score}s[100];voidinput(structstus[],intn){inti=n;scanf("%s%s%d%d%d", 题解列表 2023年03月16日 0 点赞 0 评论 942 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录 注意结构体+函数的调用形式!!!```c#include#includestructstu{charnum[10];charname[20];intscr[3];//score}s[100];voidinput(structstus[],intn){inti=n;scanf("%s%s%d%d%d", 题解列表 2023年03月16日 0 点赞 0 评论 589 浏览 评分:0.0
编写题解 1039: 宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;#define LEAP_YEAR(y) if(y%4==0&&y%100!=…… 题解列表 2023年03月16日 0 点赞 0 评论 489 浏览 评分:0.0
蓝桥杯2020年第十一届省赛真题-网络分析 摘要:解题思路:并查集加懒惰标记注意事项:注意标记清零。参考代码:#include<iostream> #include<unordered_map> #include<vector> #includ…… 题解列表 2023年03月16日 0 点赞 0 评论 769 浏览 评分:9.9
试了好几次,终于成功了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<malloc.h>typedef struct LNode{ int data; …… 题解列表 2023年03月16日 0 点赞 0 评论 609 浏览 评分:10.0
超级简单的代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]={0};char b[100]={0}; gets(…… 题解列表 2023年03月15日 0 点赞 0 评论 460 浏览 评分:0.0