原创 第一章-問題求解策略-LA4238-Area of Polycubes

分類:思維 題目鏈接:LA4238-Area of Polycubes 開始想到搜索,結果炸了,後來發現是判斷距離 如果兩者之間距離爲1,則面積減少2 如果兩者距離爲0,顯然出現了錯誤 如果某個立方塊與其他在他前面的塊距離總是非0

原创 Windows下的python的安裝全步驟,分圖詳解

step1: 去官網下載python安裝包並安裝 windows版python下載地址 一般選擇python3最好 python3和python2語法有差異 python3最新 安裝的時候記下安裝目錄,待會兒有用 step 2:

原创 Windows+Firefox(Chrome)+selenium+python配置並更改源(加快下載速度,不然很慢)

第一步:安裝python 詳見windows下python安裝教程 第二步:安裝selenium 先更換源 清華的tuna源速度不錯可以使用tuna源 在C盤用戶(Users)文件夾中新建pip文件夾並新建pip.ini文件 文件

原创 可以用於多變量多類型的C++快讀快寫模板

快讀-輸入一個 typedef long long ll; template<typename T> void read(T &x) { x = 0;char ch = getchar();ll f = 1; wh

原创 Codeforces Round #627 (Div. 3)題解

比賽鏈接:Codeforces Round #627 (Div. 3) A. Yet Another Tetris Problem 題意 你在玩俄羅斯方塊,給出一個數組a,a[i]表示第i堆俄羅斯方塊的個數,你可以用n個2*1的

原创 第一章-問題求解策略-Uva11636-Hello World!

#include<iostream> using namespace std; int n,t=1; int a[1005]; int main() { ios::sync_with_stdio(false); a

原创 第一章-問題求解策略-Uva11039-Building designing

#include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int maxn=500000+50; int arr[maxn]; b