题解列表
~~【Java】版本~~
摘要:解题思路:注意事项:参考代码:import java.util.*;
public class Main {
public static void main(String[] args……
自定义函数之数字后移
摘要:解题思路:创建一个数组把前面需要替换的数组进行储存,数组整体后移之后再加到数组前面注意事项:注意数组越界欸,一定要看清楚!!!参考代码:import java.util.Scanner;public ……
malloc函数的使用
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main() { int n, i, m; scanf("%d", &n); ……
通过列表高效解决母牛递归问题
摘要:解题思路:while True + break解决多行输入问题,列表存储解决超时问题,my_list[ ]存储每一年的母牛数注意事项: 当且仅当n>before_max(历史最大输入)时,才允许……
C语言题解 1021: [编程入门]迭代法求平方根
摘要:#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
double squareroot(double n……
C语言题解 1093: 字符逆序
摘要:#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main() {
char str[……
编写题解 2760: 整型与布尔型的转换
摘要:代码:
a=int(input())
b=bool(a)
a=int(b)
print(a)
注意:`bool`是`int`子类,故正常的创建与删除方式 **不……