1 using System.Collections.Generic;//引用命名空间//Dictionary可以理解为散列集合 2 public class DictionaryTest 3 { 4 public static void Main() 5 { 6 //1.初始化 7 D... ...
数字组合 题目描述 Description 在N个数中找出其和为M的若干个数。先读入正整数N和M, 再读入N个正数(可以有相同的数字,每个数字均在1000以内), 在这N个数中找出若干个数, 使它们的和是M, 把满足条件的数字组合都找出来以统计组合的个数,输出组合的个数(不考虑组合是否相同)。要求你 ...
分类:
其他好文 时间:
2017-07-12 01:21:08
阅读次数:
212
http://poj.org/problem?id=1611 【Accepted】 1 #include<iostream> 2 #include<cstdio> 3 #include<algorithm> 4 #include<cstring> 5 #include <string> 6 usin ...
分类:
其他好文 时间:
2017-07-12 01:20:21
阅读次数:
256
我直接用正点原子给的,步骤如下 先添加三个.c进工程,添加两个头文件的编译路径 #include "usart.h"#include "usmart.h" main函数里添加如下 NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);// 设置中断优先级分组2 ...
分类:
其他好文 时间:
2017-07-12 01:18:49
阅读次数:
280
CentOS SSH配置 默认CentOS已经安装了OpenSSH,即使你是最小化安装也是如此。所以这里就不介绍OpenSSH的安装了。 SSH配置: 1、修改vi /etc/ssh/sshd_config,根据模板将要修改的参数注释去掉并修改参数值: Port 22 指定SSH连接的端口号,安全方 ...
分类:
其他好文 时间:
2017-07-12 01:08:08
阅读次数:
251
public class Test { public static void main(String[] args) { int a[] = { 1, 2, 3, 4, 5 }; // 选择排序(a); // 插入排序(a); quicksort(a, 0, a.length - 1); Syste... ...
分类:
编程语言 时间:
2017-07-12 01:05:47
阅读次数:
172
题目:多项式f(x)=x + x^2 + x^3 + ···+x^n求和。 ...
分类:
其他好文 时间:
2017-07-12 01:04:53
阅读次数:
220
Using a module's __name__ Example 8.2. Using a module's __name__ #!/usr/bin/python # Filename: using_name.py if __name__ == '__main__': print 'This ...
分类:
编程语言 时间:
2017-07-11 23:30:38
阅读次数:
449
SpringBoot默认配置文件位置为src/main/resources/application.properties YAML将属性加载到内存中保存的时候是有序的 ...
分类:
编程语言 时间:
2017-07-11 23:29:21
阅读次数:
372
public static void main(String[] args) { String jsonStr = "[{\"varieties_type\":\"中证500指数\",\"open_granary\":\"0.0002\",\"close_granary\":\"0.0015\",\ ...
分类:
编程语言 时间:
2017-07-11 23:24:32
阅读次数:
267