绝对值排序(动态内存分配(calloc) 摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<stdlib.h>int main(){ int i,j,n,*p,*t; scanf("%d",&n); while(…… 题解列表 2024年03月30日 0 点赞 0 评论 284 浏览 评分:9.9
c++暴力枚举时间统计 摘要:解题思路:枚举1000秒内所有情况,再利用map记录x y的最大情况注意事项:参考代码:#include<bits/stdc++.h>#define int long longusing namesp…… 题解列表 2024年03月30日 0 点赞 0 评论 234 浏览 评分:0.0
发工资咯(Java题解+递归+数组) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { // 定义人民币面额数组 static int[] denomina…… 题解列表 2024年03月30日 0 点赞 0 评论 286 浏览 评分:6.0
python drgrregrg 摘要:解题思路:注意事项:参考代码:n = int(input())c, w ,t = 1, 1, 1while t < n: c += 1 w = 3*w t += w print…… 题解列表 2024年03月30日 0 点赞 0 评论 201 浏览 评分:0.0
最简单的解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i=1; long long j=1,sum=0; for…… 题解列表 2024年03月30日 0 点赞 0 评论 214 浏览 评分:0.0
编写题解 1487: 蓝桥杯算法提高VIP-不同单词个数统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void max(char* p, char sz[110][15],int s){ i…… 题解列表 2024年03月30日 0 点赞 0 评论 358 浏览 评分:0.0
编写题解 1536: 蓝桥杯算法提高VIP-最长单词 摘要:解题思路:注意事项:按空格分割为多个字符串,在比较每个字符串的长度。参考代码:#include<stdio.h>#include<string.h>void max(char* p, char sz[…… 题解列表 2024年03月30日 0 点赞 0 评论 524 浏览 评分:0.0
题解 2219: 蓝桥杯算法训练-大等于n的最小完全平方数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; while(1) { if(…… 题解列表 2024年03月30日 0 点赞 0 评论 180 浏览 评分:0.0
1234: 检查一个数是否为质数(改进速度版) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年03月30日 0 点赞 0 评论 228 浏览 评分:9.9
暴力排序对照 摘要:解题思路:注意事项:参考代码:import java.util.*;import java.math.*;public class Main{ static Scanner sc=new Scanne…… 题解列表 2024年03月30日 0 点赞 0 评论 236 浏览 评分:0.0