原创 哈工大python期末考試編程1

def get_standard_str(s): lis = list(s) lis.sort() s = "".join(lis) return s stop_word = "" dict1

原创 2018 第九屆藍橋杯省賽總結 + 解題報告(C語言B組)3.乘積尾零

#include <bits/stdc++.h> using namespace std; int main() { #ifdef ONLINE_JUDGE #else freopen("in.txt", "r", stdi

原创 POJ 2488

#include <bits/stdc++.h> using namespace std; int visited[30][30]; struct Pos{ int r, c; }; Pos path[30]; Pos mov[8]

原创 POJ 4115:鳴人和佐助

#include <bits/stdc++.h> using namespace std; int M, N, T; char m[210][210]; int used[210][210][15]; struct Pos{ int

原创 POJ 3151:Pots

#include <bits/stdc++.h> using namespace std; int A, B, C; struct Status{ int a, b; int prev; int mov; //用來定義opera

原创 POJ 2816:紅與黑

#include <bits/stdc++.h> using namespace std; char maze[25][25]; int visited[25][25]; int area = 0; int W, H; int sr,

原创 百練1328:Radar Installation

#include <bits/stdc++.h> using namespace std; const double eps = 1e-6; int n, d; struct Seg{ double x1, x2; bool op

原创 百練 4127:迷宮問題

#include <bits/stdc++.h> using namespace std; struct Pos{ int r, c; int f; Pos(int rr = 0, int cc = 0, int ff = 0)

原创 百練1042:Gone Fishing

#include <bits/stdc++.h> using namespace std; const int maxL = 30; int f[maxL]; int d[maxL]; int t[maxL]; int maxFish

原创 程序設計實習MOOC / 程序設計與算法(二)測驗彙總(2019春季) 002:撥鍾問題

#include <iostream> #include <bitset> #include <algorithm> #include <functional> #include <cstring> #include <bits/st

原创 程序設計實習MOOC / 程序設計與算法(二)測驗彙總(2019春季) 017

#include <bits/stdc++.h> using namespace std; const int N = 20 + 1, INF = 0x3f3f3f3f; int f[N][N][N], w, h, m; void s

原创 程序設計實習MOOC / 程序設計與算法(二)測驗彙總(2019春季) 016

#include <bits/stdc++.h> using namespace std; int w[3402 + 1], v[3402 + 1]; //w用來記錄每個Bracelet的重量,v用來記錄每個Bracelet的價值 i

原创 程序設計實習MOOC的程序設計與算法(二)測驗彙總(2019春季) 013Zipper

#include <bits/stdc++.h> using namespace std; const int maxn = 2 * 1e2 + 1 ; int dp[maxn][maxn]; int main() { #ifdef

原创 程序設計實習MOOC / 程序設計與算法(二)測驗彙總(2019春季) 012 攔截導彈

#include <bits/stdc++.h> using namespace std; int main() { int k; scanf("%d", &k); int key = 1; vector<int> d(k,

原创 2018 第九屆藍橋杯省賽總結 + 解題報告(C語言B組)2.明碼

#include <bits/stdc++.h> using namespace std; string foo(int n); int main() { #ifdef ONLINE_JUDGE #else freopen("i