原创 Altium Designer(Protel)網絡連接方式Port和Net Label詳解
原文鏈接:https://blog.csdn.net/sdwuyulunbi/article/details/7620621 轉自:https://blog.csdn.net/sdwuyulun
原创 數位dp
題意:求在區間[a,b]中每一位相加能整除10的數有多少個。 解題思路:用數位dp #include<bits/stdc++.h> #define ll long long using namespace std; char s1[20
原创 NOI機試 1.6.13:大整數的因子
30位數太大了,直接用%自然是行不通的,所以用高精度來做。 #include<bits/stdc++.h> using namespace std; char s[35]; int s1[35]; int main() { scanf
原创 NOI 1.7.32:行程長度編碼(字符串,使用toupper)
鏈接:http://noi.openjudge.cn/ch0107/32/ toupper和tolower函數字符轉大寫和轉小寫 #include<ctype.h> #include<cstdio> #include<cstring>
原创 NOI 1.7.28:單詞倒排(字符串)
鏈接:http://noi.openjudge.cn/ch0107/28/ #include"bits/stdc++.h" using namespace std; int main() { //freopen("t.txt",
原创 1.8.23:二維數組回形遍歷(純遍歷)
鏈接:http://noi.openjudge.cn/ch0108/23/ #include<bits/stdc++.h> using namespace std; int s[200][200],vis[200][200]; int
原创 1.7.30:字符環(字符串,求公共子串)
鏈接:http://noi.openjudge.cn/ch0107/30/ #include<iostream> #include<string.h> using namespace std; int len1,len2,cnt=0;
原创 1.8.13:圖像模糊處理(四捨五入參考一下)
鏈接http://noi.openjudge.cn/ch0108/13/ #include<bits/stdc++.h> using namespace std; double s[105][105],s1[105][105]; int
原创 1.10.08:病人排隊(穩定排序,stable_sort)
鏈接:http://noi.openjudge.cn/ch0110/08/ #include<bits/stdc++.h> using namespace std; struct node { string id; int age,
原创 AVL樹
AVL樹模板:https://blog.csdn.net/S_999999/article/details/97409459 後面再來好好解析一下 #include <iostream> using namespace std; str
原创 機試NOI 1.6.15:階乘和(高精度)
鏈接http://noi.openjudge.cn/ch0106/15/ #include<bits/stdc++.h> using namespace std; int s[500],s1[500]; int main() { in
原创 1.10.10:單詞排序(字符串去重和排序)
鏈接:http://noi.openjudge.cn/ch0110/solution/20706941/ 還有讀入比較,compare函數。以前沒注意到string還能直接用sort來排序,很方便!!! #include<cstring
原创 NOI 1.6.14:求10000以內n的階乘(高精度乘法,模板)
鏈接:http://noi.openjudge.cn/ch0106/solution/20690049/ #include<bits/stdc++.h> using namespace std; int s[10000009]; int
原创 B:打印月曆
鏈接:http://bailian.openjudge.cn/xly2019/B/ 解題思路: 閏年判斷方法:能被4整除但不能被100整除,或者能被400整除。 1900年1月1日是週一。 #include<bits/stdc++.h>
原创 1.11.02:二分法求函數的零點(二分法求函數解)
鏈接:http://noi.openjudge.cn/ch0111/02/ #include<bits/stdc++.h> using namespace std; double f(double x) { double x1[6];