08 2024 档案
摘要:消除换行符 if (str[i] == '\n')str[i] = '\0'; scanf和cin会读取空格,而fgets不会 gets_s许多编译器不支持,不建议用 char str[N]; if (fgets(str, sizeof(str), stdin) == NULL) { return
阅读全文
摘要:1.Function 机器学习=找函式(function) 函式种类: Regression:输出是一个数值(scalar)。 Classification:设定好的选项里选择一个进行输出 Structured learning Model y=b+wx feature weight bias 2.
阅读全文
摘要:https://linklearner.com/activity/16/14/42
阅读全文
摘要:普通 #include<iostream> using namespace std; #include<algorithm> #include<cstring> const int N = 5010; int n, f[N]; int a[N]; int main() { cin >> n; for
阅读全文
摘要:题目acwing #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N = 100010; int n, m; int h[N], e[N], ne[N], idx; int
阅读全文