摘要:
简单题#include #include using namespace std;#define maxn 50005int n;int f[maxn], g[maxn];int main(){ scanf("%d", &n); if (n < 4) { puts("... 阅读全文
摘要:
简单题#include int sum(int a, int b){ int ret = 0; while (a) { ret += a % b; a /= b; } return ret;}int main(){ for (int i... 阅读全文
摘要:
简单题#include int main(){ int t; scanf("%d", &t); while (t--) { int a, b, c, d; scanf("%d%d", &a, &b); c = (a + b) / 2;... 阅读全文
摘要:
简单题#include #include using namespace std;int l, n;void input(){ int earliest, latest; scanf("%d%d", &l, &n); latest = 0; earliest = 0; ... 阅读全文
摘要:
化学计算题,解一元二次方程。//zoj2351#include #include using namespace std;int N,m,n;double k,a;bool init(){ cin>>k>>a>>m>>n; if (k==0&&a==0&&m==0&&... 阅读全文
摘要:
简单题#include #define maxn 10005int n, f[maxn];void init(){ int i = 1; int x = 0; while (1) { for (int j = 0; j 10000) ... 阅读全文
摘要:
简单题#include #include #include #include using namespace std;struct Player{ string name; double speed; int weight, strength; Player() {} ... 阅读全文