题解 3003: 鸡兔同笼问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int m, n, x, y;//m表示鸡的数量 n表示兔的数量 scanf("…… 题解列表 2023年02月26日 0 点赞 0 评论 510 浏览 评分:10.0
使用循环打印行数可变的空心金字塔 摘要:行数可变,改num值即可。 ``` java public class Main { public static void main(String[] args) { i…… 题解列表 2023年03月01日 1 点赞 0 评论 307 浏览 评分:10.0
试了好几次,终于成功了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<malloc.h>typedef struct LNode{ int data; …… 题解列表 2023年03月16日 0 点赞 0 评论 292 浏览 评分:10.0
子串分值和-贡献值法,详细样例解释 摘要: 先上暴力法,只能50% ``` package B组; import java.util.Arrays; import java.util.HashSet; import jav…… 题解列表 2023年03月20日 0 点赞 1 评论 322 浏览 评分:10.0
简单的判断 摘要:思路: 按照题目给的公式循环遍历求解即可,即判断s和n的大小 if(sum>=n) { printf("%d",i-1); break; …… 题解列表 2023年03月31日 1 点赞 0 评论 539 浏览 评分:10.0
c++题解,简短 摘要:每加入一条直线,增加的面是交点的个数+1,还有要注意的是重合的线,和平行的线要特别处理一下 ```cpp #include using namespace std; #define ll …… 题解列表 2023年04月05日 0 点赞 0 评论 467 浏览 评分:10.0
蓝桥杯基础练习VIP-报时助手(C语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>//二十以内的数字;char arr[25][20]={"zero","one","two","…… 题解列表 2023年04月16日 1 点赞 0 评论 221 浏览 评分:10.0
2864: 单词替换 摘要:解题思路:1.读入一行字符串s、待替换单词a和替换单词b。2.使用stringstream将字符串s分割成单词,并依次判断每个单词是否为待替换单词a,若是,则输出替换单词b;否则输出原单词。3.输出替…… 题解列表 2023年04月21日 0 点赞 0 评论 261 浏览 评分:10.0
屎山代码写法 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>using names…… 题解列表 2023年04月26日 0 点赞 0 评论 379 浏览 评分:10.0
破解简单密码(switch暴力破解) 摘要:```c #include #include void Decode(char* strs); char translate(char ch); int main() { char p…… 题解列表 2023年05月03日 0 点赞 0 评论 297 浏览 评分:10.0