蓝桥杯2013年第四届真题-错误票据 摘要:#include<iostream> #include<cmath> using namespace std; int main() { int n,a[100000]={0},k,max…… 文章列表 2023年03月24日 0 点赞 0 评论 62 浏览 评分:0.0
2022年第十三届蓝桥杯大赛软件类省赛C/C++大学A组真题 求和 摘要:#include<iostream> #include<cmath> using namespace std; int main() { int n,a[200000]; long…… 文章列表 2023年03月24日 0 点赞 0 评论 135 浏览 评分:0.0
进制数的转换 摘要:```c 任意进制转十进制 #include int main(){ int x,p; //x输入数字 p该数的进制数 scanf("%d",&x); scanf("%d…… 文章列表 2023年03月24日 0 点赞 0 评论 174 浏览 评分:0.0
大连交通大学五年制C语言试卷七 考试笔记 摘要:2.下列程序段的输出结果为( )。float k=0.8567;printf("%4.1f%%",k*100);结果:85.7% //进一位保留一位小数;4.若k是整型,则以下程序段的执行结果是( …… 文章列表 2023年03月31日 0 点赞 0 评论 560 浏览 评分:0.0
巴什博弈变形题通解 摘要:代码通过洛谷p4018所编写通解只适用于数据比较小的该类型题目该代码只能通过洛谷p4018 30% 其他的会超时#include<bits/stdc++.h> using namespace std…… 文章列表 2023年04月20日 0 点赞 0 评论 147 浏览 评分:0.0
求特殊自然数 摘要:public class Main { public static void main(String[] args) { Scanner sc = new Scanner(Syst…… 文章列表 2023年04月26日 0 点赞 0 评论 133 浏览 评分:0.0
不高兴的津津(C++实现,使用vector容器或结构体) 摘要:方法一:用两个vector容器,第一个存放对应日期的上课时间,再将第一个的上课时间大于8的元素存放到第二个vector容器中,对第二个容器进行升序排序操作,最后遍历第二个容器将容器出现的第一个和最后一…… 文章列表 2023年06月05日 0 点赞 0 评论 145 浏览 评分:0.0
【C++贪心算法】发工资喽 摘要:#前言 本题是一个使用动态规划的经典题目,贪心算法实际上是动态规划的一个特例,动态规划(dp)实际上是把一个问题分成多个子问题进行分步求解,而贪心算法则是一直考虑当下的最优。不去考虑当前的之前,每次…… 文章列表 2023年06月09日 0 点赞 0 评论 218 浏览 评分:0.0
链表dsaddddddddddddddddddddd 摘要:#include<stdio.h>#include<malloc.h>struct no { int ct; struct no *next;};struct no * create(int n) {…… 文章列表 2023年06月13日 0 点赞 0 评论 140 浏览 评分:0.0
2790 分段函数 摘要:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >>x; if (x>=0&&x<5) …… 文章列表 2023年06月17日 0 点赞 0 评论 109 浏览 评分:0.0