题解列表
分解质因数 一种用素数判断 一种无需判断
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//判断是否是素数bool check(int ……
常规解法使用map函数
摘要:解题思路:使用map函数注意事项:输入字符类型为float参考代码:x,a,b,c,d=map(float,input().split())fx=a*x**3+b*x**2+c*x+dprint(……
堆栈的使用(动态栈、数组实现,作代码记录用,注意输入读取及输出的格式)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct{ int *data……
十-八进制转换(动态栈、数组实现,作代码记录用)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct{ int *data……
题解 2929: 网线主管(Java版本)
摘要:```javaimport java.util.Scanner;public class Main { // 检查以指定长度切割网线数组,能否得到至少k条网线 // 参……
十-八进制转换(静态栈、数组实现,作代码记录用)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#define maxsize 100typedef struct{&nbs……
表达式括号匹配-栈实现(作代码记录用)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define maxsize 255typedef struct{&nbs……
2808: 买房子(c语言解法)
摘要:#include <stdio.h>int main(){ int n,k,i,m,sum=0; double s=200,o; scanf("%d %d",&……