原创 Usaco:Palindromic Squares

簡單的進制轉換 /* ID: Jang Lawrence PROG: palsquare LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #includ

原创 USACO:Score Inflation

/* ID: Jang Lawrence PROG: inflate LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #include<string>

原创 Codeforces Round #149 (Div. 2):XOR on Segment

- -20棵線段樹 好久沒寫 #include<iostream> #include<cstring> #include<algorithm> #include<cstdio> #include<vector> #include<stri

原创 USACO:Checker Challenge

深搜一下 稍微優化一下就ok /* ID: Jang Lawrence PROG: checker LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #i

原创 USACO:Mixing Milk

簡單貪心 沒什麼好說的 /* ID: Jang Lawrence PROG: milk LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #include

原创 USACO:Hamming Codes

/* ID: Jang Lawrence PROG: hamming LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #include<algorith

原创 USACO:Mother's Milk

廣搜即可 /* ID: Jang Lawrence PROG: milk3 LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #include<algor

原创 USACO:Barn Repair

簡單貪心 細節注意點即可 /* ID: Jang Lawrence PROG: barn1 LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #inclu

原创 USACO:Prime Cryptarithm

枚舉沒什麼好說的 /* ID: Jang Lawrence PROG: crypt1 LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #include<

原创 USACO:Arithmetic Progressions

直接枚舉 /* ID: Jang Lawrence PROG: ariprog LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #include<alg

原创 USACO:Healthy Holsteins

/* ID: Jang Lawrence PROG: holstein LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #include<algorit

原创 USACO:Calf Flac

玩了一天  晚上才做題 /* ID: Jang Lawrence PROG: calfflac LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #inc

原创 USACO:Dual Palindromes

大水題  /* ID: Jang Lawrence PROG: dualpal LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #include<alg

原创 USACO: PROB Packing Rectangles

超級蛋疼的題 看到第一遍就不想做 拖啊拖  /* ID: Jang Lawrence PROG: packrec LANG: C++ */ #include<iostream> #include<cstring> #include<cst

原创 USACO:Superprime Rib

枚舉 /* ID: Jang Lawrence PROG: sprime LANG: C++ */ #include<iostream> #include<cstring> #include<cstdio> #include<algori