/*
2020.2.17
问题描述
给出n个数,找出这n个数的最大值,最小值,和。
输入格式
第一行为整数n,表示数的个数。
第二行有n个数,为给定的n个数,每个数的绝对值都小于10000。
输出格式
输出三行,每行一个整数。第一行表示这些数中的最大值,第二行表示这些数中的最小值,第三行表示这些数的和
*/
#include <stdio.h>
int main(void)
{
int n, i;
scanf("%d", &n);
int a[n];
for(i=0; i<n; i++)
{
scanf("%d", &a[i]);
}
int max=a[0];
for(i=0; i<n; i++)
{
if(a[i]>max)
{
max=a[i];
}
}
int min=a[0];
for(i=0; i<n; i++)
{
if(a[i]<min)
{
min=a[i];
}
}
int he=0;
for(i=0; i<n; i++)
{
he=he+a[i];
}
printf("%d\n", max);
printf("%d\n", min);
printf("%d\n", he);
return 0;
}
<!--* @Description:* @Author: wwf* @Date: 2022-05-18 14:42:31* @LastEditTime: 2022-05-18 16:28:31* @LastEditors: wwf--><template> <div class="GlobalSeach"> <div class="GlobalSeachInput"> ...
问题:Python安装scikit-image报错skimage\external\tifffile\tifffile.c(75) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory问题原因:stdint.h是c99标准的头文件,默认安装无此文件,编译时对此文件有依赖,因此需要单独...
java中实现多线程之实现runnable接口1.处理业务代码//根据传参打印对应的名字 private void printName(String name) throws Exception{ System.out.println(name); }2.创建内部类实现Runnable接口private class PrintName implements Runnable{ private String name; publ
贝叶斯估计一、基础知识1.1 常用分布函数X ~ B(α,β)B(\alpha, \beta)B(α,β): f(x)=yα−1(1−y)β−1f(x) = y^{\alpha - 1}(1-y)^{\beta - 1}f(x)=yα−1(1−y)β−1E(x)=αα+βE(x) = \frac{\alpha}{\alpha + \beta}E(x)=α+βαX ~ Γ(α,β)\Gamma(\alpha, \beta)Γ(α,β): f(x)=βαΓ(α)xα−1e−βx,x>0,
1、安装 openssh-服务端:sudo apt-get install openssh-server客户端:sudo apt-get install openssh-client2、配置无密码登录:ssh-keygen -t rsa -P "" ;cat .ssh/id_rsa.pub >> .ssh/authorized_keys;scp [email protected]:file folder
废话少说,进入正题本文采用MTCNN+facenet实现人脸识别#第一步——环境配置需要配置的环境有:anacondapycharmpython(最好选择3.5.x版本,一定不能选择高版本,后面会遇到很多问题)tensorflow等等##由于我在环境配置方面踩的坑比较多,下面我会详细介绍如何进行安装#使用方法1、下载我的安装包(mtcnn+facenet)。2、下载完之后解...
nn.Module类nn.Module是PyTorch提供的神经网络类,并在类中实现了网络各层的定义及前向计算与反向传播机制。在实际使用时,如果想要实现某个神经网络,只需继承nn.Module,在初始化中定义模型结构与参数,在函数forward()中编写网络前向过程即可。...
java里的BigInteger。。还是很好用的import java.io.*;import java.util.*;import java.math.*;public class Main{ public static void main(String[] args) throws IOException{ BufferedReader cin =
项目能打开,但是当要在项目中查看文件时弹出未找到与约束 contractname microsoft.visualstudio.utilities 匹配的导出解决办法:删除 C:\Users\计算机名称\AppData\Local\Microsoft\VisualStudio\11.0 文件夹下Microsoft.VisualStudio.Default.cache
使用EXPDP和IMPDP时应该注意的事项:EXP和IMP是客户端工具程序,它们既可以在客户端使用,也可以在服务端使用。EXPDP和IMPDP是服务端的工具程序,他们只能在ORACLE服务端使用,不能在客户端使用。IMP只适用于EXP导出的文件,不适用于EXPDP导出文件;IMPDP只适用于EXPDP导出的文件,而不适用于EXP导出文件。expdp或impdp命令时
正好,在7月11号的时候flutter更新到了1.7 版本具体的更新更新内容:https://flutter-io.cn/posts/announcing-flutter-1-7-9.html既然这样的话,那我们也来先更新一下吧。flutter SDK的更新升级命令是flutterupgradeflutter upgrade但是!!!不要着急直接输入,不然就会Error 伺候……flutt...
一、C语言 readdir函数用来读取指定的目录流的目录项到一个dirent结构体指针中,并将读取指针设置为下一个目录项的位置。二、结构dirent体定义如下:struct dirent{ ino_t d_ino; //d_ino 此目录进入点的inode ff_t d_off; //d_off 目录文件开头至此目录进入点的位移 signed short int d_reclen; //d_reclen _name 的长度, 不包含NULL 字符 unsi..