ICode9

精准搜索请尝试: 精确搜索
  • D-OJ刷题日记:求最小值 题目编号:11212021-10-13 16:06:23

    输入一个正整数n,然后输入n个整数,输出n个数中的最小数。 输入描述 第一行n 第二行n个数 输出描述 最小的数 输入样例 10 1 2 3 4 5 6 7 8 9 10 输出样例 1 思路:水 程序代码: #include<iostream> #define MAXSIZE 100 using namespace std; int main() { int n,min; int a[MAXSIZ

  • 【物理应用】基于matlab遗传算法LQR控制器【含Matlab源码 1121期】2021-07-10 08:52:04

    ## 一、简介 1 遗传算法概述 遗传算法(Genetic Algorithm,GA)是进化计算的一部分,是模拟达尔文的遗传选择和自然淘汰的生物进化过程的计算模型,是一种通过模拟自然进化过程搜索最优解的方法。该算法简单、通用,鲁棒性强,适于并行处理。 2 遗传算法的特点和应用 遗传算法是一类可用于复杂

  • 1121:计算矩阵边缘元素之和2021-06-12 11:32:35

    1121:计算矩阵边缘元素之和 时间限制: 1000 ms 内存限制: 65536 KB 提交数: 30741 通过数: 17728 【题目描述】 输入一个整数矩阵,计算位于矩阵边缘的元素之和。所谓矩阵边缘的元素,就是第一行和最后一行的元素以及第一列和最后一列的元素。 【输入】 第一行分别为矩阵的行数m和

  • SZTUOJ 1121 - The Area of a Sector2021-06-11 20:03:50

    SZTUOJ 1013 - The Area of a Sector Description Given a circle and two points on it, calculate the area of the sector with its central angle no more than 180 degrees. Input There are multiple test cases. Each line contains 6 float numbers denote the center

  • 1121 Damn Single (25 分)2021-02-27 20:33:28

    "Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can be taken care of. Input Specification: Each input file contains one test case. For each case, t

  • 1121 Damn Single (25 分)2021-02-18 11:03:46

    水题~。 const int N=1e5+10; map<int,int> mp; bool vis[N]; int a[10010]; int n,m; int main() { cin>>n; for(int i=0;i<n;i++) { int a,b; cin>>a>>b; mp[a]=b,mp[b]=a; } cin>>m; fo

  • 1121: 电梯2021-01-04 13:02:38

    题目描述 在某一高层建筑内只有一部电梯,当你按下一个数时,电梯会运行到那一层。已知电梯每上升一层需6秒,下降一层需4秒,在需要停留的那层停留5秒。现有N个整数组成的一个需求列表,电梯将依次响应,电梯从0层开始运行,而在运行过程结束之前不会返回0层。注意,若出现相邻两个整数相等,代表

  • python 1121: 电梯2020-12-24 09:32:48

    import math a=int(input()) b=list(map(int,input().split()))#将输入变为彻底的列表(纯数字) c=d=0 for i in range(a): if b[i]>c: d+=math.fabs(int(b[i])-c)*6+5 elif b[i]==c: d+=5 else: d+=math.fabs(int(b[i])-c)*4+5 c=b[i] print(’%d’%d)

  • 1121: 电梯--python2020-11-23 21:57:32

    1121: 电梯–python 题目描述: 在某一高层建筑内只有一部电梯,当你按下一个数时,电梯会运行到那一层。已知电梯每上升一层需6秒,下降一层需4秒,在需要停留的那层停留5秒。现有N个整数组成的一个需求列表,电梯将依次响应,电梯从0层开始运行,而在运行过程结束之前不会返回0层。 注意,若

  • 1121 Damn Single (25分)2020-05-07 16:54:00

    "Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can be taken care of. Input Specification: Each input file contains one test case. For each case, t

  • win10 创建ftp服务器 怀疑的可能的坑2019-12-29 21:53:20

    教程使用 https://blog.csdn.net/zhj_1121/article/details/85344185 , 其中win10服务“web管理工具”那一项全部都要打开; 创建的系统用户 名称不能使用 ”ftp“ , 换成其他的。 否则的话使用密码不能登录,一直报ftp的530错误。

  • 1121 Django基本2019-11-21 22:02:39

    目录 Django前戏 一、课程导读 1、web应用 2、c/s b/s 架构 3、Python Web框架 二、原生socket服务 三、http协议 什么是http协议 四大特性 http工作原理(事务) 数据格式 响应状态码 动静态网页 jinjia2模板语法 四、框架演变 五、项目演变 Django的创建以及配置 1.三大主流we

  • 1121 爬虫简单面条版2019-11-21 19:56:10

    第一份的爬虫爬取小说网 http://www.minixiaoshuo.com/ 没解决的问题: 爬取主页小说时,由于章节主页有最近章节,导致每一本小说的前面都有最新的十几章内容没法去除 写入速度太慢,两本书大约10M,爬取了13分钟. 代码冗余,暂时没有分函数爬取 import requests import re # 获取re

  • 1121:计算矩阵边缘元素之和2019-08-02 20:08:12

    1121:计算矩阵边缘元素之和 时间限制: 1000 ms 内存限制: 65536 KB 【题目描述】 输入一个整数矩阵,计算位于矩阵边缘的元素之和。所谓矩阵边缘的元素,就是第一行和最后一行的元素以及第一列和最后一列的元素。 【输入】 第一行分别为矩阵的行数m和列数n(m<100,n<100),两者

  • 1121. Divide Array Into Increasing Sequences2019-07-14 10:38:42

    Given a non-decreasing array of positive integers nums and an integer K, find out if this array can be divided into one or more disjoint increasing subsequences of length at least K. Input: nums = [1,2,2,3,3,4,4], K = 3 Output: true Explanation: The ar

  • 1121. 将数组分成几个递增序列2019-07-14 09:01:09

    这道题被吓到了 ,不知道怎么判断 ,其实是找同一个值的最大出现次数,也就是最大的分组 因为其他的话会分布比较均匀出现 class Solution { public boolean canDivideIntoSubsequences(int[] nums, int K) { int now = 0; int m = 0; for (int i = 0; i <

  • win10 注册2019-06-25 21:00:48

    最近新安装了一台AMD YES 2700。 安装win10的企业版,没有注册,推荐淘宝。 但是我没有使用淘宝。你懂得链接 FREE。 以后赚钱了有机会用正版吧。 http://www.tudoupe.com/win10/win10jihuo/2014/1121/981.html

  • PAT甲级——1121 Damn Single (C++的各种stl的使用)2019-04-20 20:52:02

    "Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can be taken care of. Input Specification: Each input file contains one test case. For each case, t

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有