USACO
USACO1.1|黑色星期五Friday the Thirteenth
纯暴力。枚举每一天。i,j,k 分别表示年月日,mt 数组存每个月的天数(遇到闰年特别判断) 开始过不了是因为想用三目运算符写闰年判断,结果发现我驾驭不了 233
Copy
#include<bits/stdc++.h>
using namespace std;
int mt[…
USACO1.1.2|贪婪的送礼者
又开始做 USACO? 反正很水,但是很绕。注意送人剩下的钱不能算得到的。
Copy
#include<bits/stdc++.h>
using namespace std;
const int MAXN=15;
struct mem{
string name;
int…