一种可借鉴的麻烦方法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int t, n, m, i, j, x, y; scanf("%d",&t); for(…… 题解列表 2023年04月01日 0 点赞 0 评论 453 浏览 评分:8.0
-质因数个数---带解析 摘要:#分析  ````java import java.util.Scanner…… 题解列表 2023年04月01日 0 点赞 0 评论 1501 浏览 评分:9.9
表达式括号匹配 摘要: #include #include #define MAX 100 char sample[1000]; //1.定义一个(顺序栈)栈 typ…… 题解列表 2023年04月01日 0 点赞 1 评论 653 浏览 评分:7.5
自由落体问题 摘要: ```c #include #include int main() { float sum=100,h=50;//设置初值,sum为第一次落地总的行程,h是下一次 int …… 题解列表 2023年04月01日 0 点赞 0 评论 389 浏览 评分:0.0
自守数问题 摘要:基本思路: 从1开始遍历,主要是求出当前的数的个数是几,然后根据个数,求出应该取平方数的后几位 注意: 最后的输出不带空格,那就把第一单个输出,把剩余的元素和它前面的空格作为 …… 题解列表 2023年04月01日 0 点赞 0 评论 530 浏览 评分:0.0
一种可借鉴的麻烦方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ return a>b?a:b;}int fun(int *a,int *b,int c…… 题解列表 2023年04月01日 0 点赞 0 评论 686 浏览 评分:8.0
简单循环暴力求解(c语言版) 摘要:解题思路通过外层for循环年份,内层while循环月份遍历所有日期注意事项:暴力求解并不能拿到所有分数,但可以拿到绝大多数分参考代码:#include<stdio.h>int judge(int n)…… 题解列表 2023年04月01日 0 点赞 0 评论 746 浏览 评分:9.9
函數調用完成加密 摘要:解题思路:1.先要讀入字符串,因需要包含可能的空格,故定義字符數組後,不能只用%s讀入 2.數組讀入後,需要遍歷,查找符合條件的字符,再來調用函數 …… 题解列表 2023年04月01日 0 点赞 0 评论 339 浏览 评分:0.0
一维迭代解法 摘要:解题思路:与一楼的思路一致,但因为用set会超时,所以采用了以下方法优化参考代码:#include<bits/stdc++.h>using namespace std;int n;int g[1000…… 题解列表 2023年04月01日 0 点赞 0 评论 363 浏览 评分:0.0
回文数(一)——python 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): a = input() s = 0 while a!=a[::-1]: …… 题解列表 2023年03月31日 0 点赞 0 评论 605 浏览 评分:0.0