编写题解 2346: 信息学奥赛一本通T1433-愤怒的牛-二分 摘要:解题思路:使用二分详见代码注意事项:无参考代码:#include <bits/stdc++.h> using namespace std; int a[1000100]; int n,m; b…… 题解列表 2024年03月10日 1 点赞 0 评论 829 浏览 评分:9.9
不知道为什么其他语言错一个 摘要:参考代码:#include <stdio.h> #define MAX_N 3500 #define MAX_M 12880 int max(int a, int b) { r…… 题解列表 2024年03月10日 0 点赞 0 评论 251 浏览 评分:0.0
编写题解 2061: [STL训练]周瑜的反间计-二分 摘要:解题思路:为了防止超时,使用二分排序二分即可注意事项:注意每组数据后要输出空行YES和NO要大写首先要判断数据是否大于a[n]或小于a[1]l < r-1否则会死循环要判断a[l]和a[r]参考代码:…… 题解列表 2024年03月10日 0 点赞 0 评论 241 浏览 评分:8.0
蓝桥杯2022年第十三届省赛真题-修剪灌木 摘要:解题思路:注意事项:参考代码:#include <stdio.h>long long max(int a,int b){ if(a>b) return a; else return b;}int ma…… 题解列表 2024年03月10日 0 点赞 0 评论 195 浏览 评分:0.0
: 蓝桥杯2022年第十三届省赛真题-刷题统计——C代码(超短) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ long long a,n,sum=0,b,i=1; …… 题解列表 2024年03月10日 0 点赞 0 评论 235 浏览 评分:0.0
数列左右数列排序 摘要:解题思路:数列排序注意事项:数列排序参考代码:import java.util.LinkedList;import java.util.Scanner;public class main {publi…… 题解列表 2024年03月10日 0 点赞 0 评论 216 浏览 评分:0.0
自定义字符类型统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void tongji(char a[1000], int *letter, int *num…… 题解列表 2024年03月10日 0 点赞 0 评论 165 浏览 评分:0.0
位数问题动态规划(java) 摘要:解题思路: 代码使用了动态规划来计算N位数中包含偶数个数字3的数的个数,并将结果对12345取余注意事项:参考代码:import java.util.Scanner; public class …… 题解列表 2024年03月10日 0 点赞 0 评论 263 浏览 评分:0.0
发工资咯(python) 摘要:解题思路:注意事项:参考代码:while True: n, *salaries = list(map(int, input().split())) if n == 0: br…… 题解列表 2024年03月10日 0 点赞 0 评论 192 浏览 评分:0.0
c语言阶乘数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double i=1; double sum=0.0; for(i=1;i<=30;i+…… 题解列表 2024年03月10日 0 点赞 0 评论 470 浏览 评分:0.0