6个if,暴力枚举法 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年03月24日 0 点赞 0 评论 221 浏览 评分:0.0
用二分解决 -冶炼金属 简单易懂 摘要:解题思路: 就是纯二分,用两次 第一次二分找到最大值,第二次二分找到最小值,输出就行了。不会二分的建议看下二分,一下就能明白这个题了注意事项:参考代码:#include<bits/stdc++.h>…… 题解列表 2024年03月25日 0 点赞 0 评论 457 浏览 评分:9.9
编写题解 2066: [STL训练]第36届ACM亚洲区大连站网络赛The kth great number 摘要:解题思路:注意事项:参考代码:int sort(int ar[], int i, int n){ for (int c = 0; c < i; c++) { for (int…… 题解列表 2024年03月25日 0 点赞 0 评论 274 浏览 评分:9.9
循环遍历(java) 摘要:解题思路: 注意事项: 利用对数函数(Math.log10()+1 )求数m的位数参考代码:import java.util.Scanner;public class Main { public …… 题解列表 2024年03月25日 0 点赞 0 评论 259 浏览 评分:0.0
2684: 蓝桥杯-数位排序(暴力+重载小于号) 摘要:**在结构体中直接重载小于号可以不用写额外的排序函数,直接调用sort即可** 感觉速度还挺快的,测试数据中时间最长为169ms,但是结构体会比较占内存,最大内存消耗9900KB ```cpp …… 题解列表 2024年03月25日 0 点赞 0 评论 279 浏览 评分:0.0
if语句的简单应用 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;#include <iomanip>int main(){ int child_candie…… 题解列表 2024年03月25日 0 点赞 0 评论 299 浏览 评分:0.0
神奇的fans 判断是否是等差数列 摘要: #include int main() { int n; scanf("%d",&n); while(n--) …… 题解列表 2024年03月25日 0 点赞 0 评论 214 浏览 评分:0.0
题解 2810: 鸡尾酒疗法 python版 易懂 摘要:解题思路:注意事项:参考代码:x = 0y = a = []n = int(input())for i in range(n): a.extend(map(int,input().split()…… 题解列表 2024年03月25日 0 点赞 0 评论 311 浏览 评分:9.9
1480: 模拟计算器 摘要:# 1480 此题干描述有点小问题,题目描述是除法/,测试用例用的是整除//listA = []while True: try: listA = input().strip().split()…… 题解列表 2024年03月25日 1 点赞 0 评论 343 浏览 评分:0.0
判断一个日期是第几天 摘要: #include int main() { int a,b,c; int day[12]={31,28,31,30,31,30,31,3…… 题解列表 2024年03月25日 0 点赞 0 评论 329 浏览 评分:0.0