编写题解 1201: 回文数(一) 摘要:解题思路:数字转换为字符串 倒置和判断回文两个函数 注意事项:参考代码:#include "stdio.h"#include "string.h"#include "stdlib.h"void NIZ…… 题解列表 2021年10月08日 0 点赞 0 评论 412 浏览 评分:0.0
[编程入门]有规律的数列求和----一看就懂 摘要:解题思路:主要观察分子分母的变化规律。注意事项:分子分母变化时注意采用临时变量参考代码:public static void main(String[] args) { Scanner in…… 题解列表 2021年10月09日 0 点赞 0 评论 411 浏览 评分:0.0
有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int a=1,b=2,c,n,i=0; float sum…… 题解列表 2021年10月09日 0 点赞 0 评论 323 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <malloc.h>int main(){ int n,m,*a=NULL,*b=NULL; scanf("%d",&…… 题解列表 2021年10月10日 0 点赞 0 评论 329 浏览 评分:0.0
小朋友排队——树状数组 摘要:设第k个小朋友应该移动n次,则n=(1-k)个小朋友中身高大于k的人数+((k+1)-n)个小朋友中身高小于k的人数满足前大后小原则例如33 2 10 1 2(前大)2 1 0(后小)故总移动次数为2…… 题解列表 2021年10月10日 0 点赞 0 评论 570 浏览 评分:0.0
小白第一次写题解,简单思路,c++代码 摘要:解题思路:用字符数组存储字符串中出现的英文字母注意事项: 最好使用getline(cin,string)参考代码:#include<iostream>#include<str…… 题解列表 2021年10月10日 0 点赞 0 评论 370 浏览 评分:0.0
错误代码-有无大佬抢救下。题解2123:拦截导弹 摘要:解题思路: 不想从前往后扫描,想从后往前扫描,抢救不回来了。注意事项:参考代码:/** * @author fzy * @create 2021/10/11 9:56 **/ impor…… 题解列表 2021年10月11日 0 点赞 0 评论 357 浏览 评分:0.0
DNA-一种题解 摘要:参考代码:public void dna() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); f…… 题解列表 2021年10月11日 0 点赞 0 评论 288 浏览 评分:0.0
数据结构单链表的使用 摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include<stdlib.h>typedef int Elemtype;typedef struct LNode //结构定义{…… 题解列表 2021年10月11日 0 点赞 0 评论 523 浏览 评分:0.0