摘要:
T1:直接模拟即可。 #include <iostream> #include <cstring> #include <algorithm> #define int long long using namespace std; signed main() { int t; cin >> t; whi 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; const int N = 250; int n; double a[N][N], x[N], p[N][N], q[N][N]; void gauss() { for (int i = 1; i <= n; 阅读全文
摘要:
\(洛谷 P1019\) link 简单的dfs题目,直接模拟即可。 #include <cstring> #include <iostream> #include <algorithm> using namespace std; const int N = 21; int n; string wo 阅读全文
摘要:
\(洛谷P1002\) link 一个简单的DP题目,状态转移公式 \(dp[i][j]=dp[i-1][j]+dp[i][j-1]\),注意马能到达的地方和马现在的地方,\(dp = 0\)。 #include<bits/stdc++.h> using namespace std; bool vi 阅读全文