解方程的。。。
My code works but why?
#include<bits/stdc++.h>
#define fo(i,j,k) for(int i=j;i<=k;++i)
using namespace std;
const int MAXN=105;
int n;
struct juzhen{
juzhen(int han,int ...
纯暴力。枚举每一天。i,j,k分别表示年月日,mt数组存每个月的天数(遇到闰年特别判断)
开始过不了是因为想用三目运算符写闰年判断,结果发现我驾驭不了233
#include<bits/stdc++.h>
using namespace std;
int mt[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
int s...
又开始做USACO?
反正很水,但是很绕。注意送人剩下的钱不能算得到的。
#include<bits/stdc++.h>
using namespace std;
const int MAXN=15;
struct mem{
string name;
int money;
} a[MAXN];
int n;
int fnd(string nm)&...