原创 360筆試題:整理綵球
每一個籃子最少放兩個球,每個籃子只能放一種顏色的球。求最少使用的籃子數。 我想到的是暴力的方式。既然他是最少放兩個球,那麼他每個籃子最多放的是n/2個球,使用兩個籃子。這樣籃子數遞增的便利,再判斷每種顏色的球是否能整除n/i個球,指導
原创 轉 opencv 仿射變換相關
原文地址:https://segmentfault.com/a/1190000015645951 1圖像轉換 OpenCV提供了兩個轉換函數cv2.warpAffine和cv2.warpPerspective,可以使用它們進行各種轉換
原创 轉載:ubuntu18 卸載cuda10.1以及安裝cuda9.0
sudo /usr/local/cuda-10.1/bin/cuda-uninstaller 參考:https://blog.csdn.net/ZacharyLoyal/article/details/88091096 安裝cuda9.0
原创 兩個最短路徑:Dijkstra和Floyd
Dijkstra 原理:https://blog.csdn.net/lbperfect123/article/details/84281300 上面博客在原理上已經解釋的很清楚了,我這邊簡單簡述下: 首先,建立dis數組用於存儲起始點到各
原创 C++ 不定數量輸入
for(i=0;;i++) { scanf("%d",&a[i]); length ++; if(getchar()=='\n') break; }
原创 平均n瓶化學試劑
#include<iostream> #include<algorithm> #include<string> #include<math.h> #include<stdlib.h> #include <iostream>
原创 BiSeNet: Bilateral Segmentation Network for Real-time Semantic Segmentation
Research background •It can be broadly applied to the fields of augmented reality devices, autonomous driving, and vid
原创 ubuntu 安裝python3.6 以及關聯pip3
1.下載並且安裝 python3.6 wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz xz -d Python-3.6.0.tar.xz tar -xvf
原创 連續撲克牌
#include<iostream> #include<algorithm> #include<string> #include<math.h> #include<stdlib.h> #include <iostream
原创 C++排序彙總
1.順序排序 #include <iostream> #include <algorithm> using namespace std; int main(){ int a[] = {5,3,7,3,9,4}; so
原创 python 版本切換命令
update-alternatives --config python
原创 3個揹包:0-1揹包 完全揹包 多重揹包
參考:https://www.cnblogs.com/A-S-KirigiriKyoko/p/6036368.html 0-1揹包 #include<iostream> #include<algorithm> #include<stri
原创 DFS and BFS
DFS #include<iostream> #include<algorithm> #include<string> #include<math.h> #include<stdlib.h> using namespace std; #
原创 十大排序
終於也要打個基礎了,準備筆試面試。 十大排序原理:https://www.cnblogs.com/onepixel/articles/7674659.html 1.冒泡排序 #include<iostream> #include<al
原创 AttributeError: 'module' object has no attribute 'interpolate'
由於我的pytorch一致安裝不了1.0.0以上的版本,所以一直用的是0.4.0,很多更新的函數. AttributeError: 'module' object has no attribute 'interpolate' 這個問題上