原创 qiime2-2019.7 Ubuntu安裝

採用Miniconda3安裝QIIME2於Ubuntu 18.04 0.將系統默認python從python2改爲python3 sudo update-alternatives --install /usr/bin/python py

原创 hdu 3199 Hamming Problem

Hamming Problem Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(

原创 利用RcppArmadillo建立支持openmp並行的R程序包(整合C++函數)

準備工作(安裝程序包並配置環境變量): R軟件:https://www.r-project.org/ 對應的Rtools:https://cran.r-project.org/bin/windows/Rtools/ Miktex:http

原创 DAY17 Python做boxplot圖常見問題及解決方案

終於做出了想要的boxplot圖 1)matplotlib API https://matplotlib.org/api/_as_gen/matplotlib.pyplot.html#module-matplotlib.pyplot 2)

原创 nyoj8 一種排序(用set)

一種排序 時間限制:3000 ms  |  內存限制:65535 KB 難度:3 描述 現在有很多長方形,每一個長方形都有一個編號,這個編號可以重複;還知道這個長方形的寬和長,編號、長、寬都是整數;現在要求按照一下方式排

原创 2015藍橋真題(A組省賽)

方程整數解 方程: a^2 + b^2 + c^2 = 1000 這個方程有正整數解嗎?有:a,b,c=6,8,30 就是一組解。 你能算出另一組合適的解嗎? 請填寫該解中最小的數字。 參考答案: 10 -

原创 hdoj5805 NanoApe Loves Sequence && hdoj 5806 NanoApe Loves Sequence Ⅱ

NanoApe Loves Sequence Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/131072 K (Java/Others) Total Su

原创 hdoj 5784 && 極角排序

How Many Triangles Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submiss

原创 nyoj 19 擅長排列的小明

擅長排列的小明 時間限制:1000 ms  |  內存限制:65535 KB 難度:4 描述小明十分聰明,而且十分擅長排列計算。比如給小明一個數字5,他能立刻給出1-5按字典序的全排列,如果你想爲難他,在這5個數字中選出幾

原创 數組元素最大值和最小值

*max_element() 函數 和 *min_element()函數 #include <iostream> #include <algorithm> using namespace std; int main() { i

原创 字符串匹配——KMP算法

KMP算法http://www.cnblogs.com/c-cloud/p/3224788.html http://blog.csdn.net/joylnwang/article/details/6778316/ 點贊

原创 二叉樹

根據後續遍歷和中序遍歷建樹: 樹的遍歷 時間限制 400 ms 內存限制 65536 kB 代碼長度限制 8000 B 判題程序 Standard 作者 陳越 給定一棵二叉樹的後序遍歷和中序

原创 vector的基本操作

http://blog.csdn.net/google19890102/article/details/51701144 1.vector對象的定義和初始化: 1)定義空的vector vector<T> v; 2) 定義一個vector

原创 Lucas定理

#include <iostream> #include <cstdio> #include <cstring> using namespace std; typedef long long llg; const int N = 15

原创 使用setup.py打包python文件

setup.py # coding: utf-8 from setuptools import setup setup( name = "Test", py_modules = ['my_test',