利用完全二叉树性质,非广搜得到答案 摘要:```C++ #include #include int n, cnt, x, ans; long long w[1000], maxn = -1e9; /* 思路:从1遍历到n…… 题解列表 2022年04月06日 0 点赞 0 评论 433 浏览 评分:0.0
用筛法求之N内的素数 摘要:解题思路:取余简简单单注意事项:参考代码:public static void main(String[] args) {Scanner scr = new Scanner(System.in);i…… 题解列表 2022年04月06日 0 点赞 1 评论 440 浏览 评分:9.9
优质题解 K-进制数(C语言代码)插空法 简单易理解 摘要:  ```c #include #include //先写个阶乘 l…… 题解列表 2022年04月06日 0 点赞 10 评论 1959 浏览 评分:9.9
矩阵乘法(暴力破解 java) 摘要:### 参考代码 ```java import java.io.BufferedReader; import java.io.IOException; import java.io.Inp…… 题解列表 2022年04月06日 0 点赞 0 评论 481 浏览 评分:0.0
[编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ printf("**************************\n"); printf("H…… 题解列表 2022年04月06日 0 点赞 0 评论 341 浏览 评分:0.0
日期问题(附带详细分析与拓展) 摘要:### 注意事项 不知道各位看官是否和我一样,02/03/04 答案是 2002-03-04 2004-02-03 2004-03-02 所以以为是直接在年份前面补充20 比如第一个…… 题解列表 2022年04月06日 0 点赞 0 评论 500 浏览 评分:9.9
python 运用库函数collections.Conter解法 摘要:解题思路:我主要说说collections.Conter()的用法.就是将元素数量统计,然后计数并返回一个类似字典的东西,键为元素,值为元素个数。看下面的一个例子 …… 题解列表 2022年04月06日 0 点赞 1 评论 515 浏览 评分:8.0
[编程入门]筛选N以内的素数------超级简单 摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(2,n): for j in range(2,i): if i % j ==0:…… 题解列表 2022年04月06日 0 点赞 0 评论 614 浏览 评分:6.0
Sine之舞 1、递归 2、for循环 摘要:1、递归#include <stdio.h> int a=0; int n,b; int A(int b) { //A3=sin(1–sin(2+sin(3))) a++; if(…… 题解列表 2022年04月06日 0 点赞 0 评论 658 浏览 评分:9.9
编写题解 1952: 求长方形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int A,B; scanf("%d %d",&A,&B); printf("C:%d\n…… 题解列表 2022年04月06日 0 点赞 0 评论 471 浏览 评分:0.0