这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp #include #include #include using namespace std; int input[200001]; struct Tree { int l, r; int maxn; }tree[800001]; //创建线段树 void CreateTree(int l, int r,…
```cpp #include #include #include using namespace std; int main() { string s; cin >> s; int len = s.size(); int ans1 = 0, ans2 = 0; for (int i = 0; i < len - 1;…
```cpp #include #include #include #include using namespace std; bool isPrime(int x) { if (x == 1) { return false; } if (x == 2 || x == 3) { return true; } for (…
```c #include #include int a[100005]; int b[100005]; typedef struct map { int data; struct map* next; }map; void Initmap(map* head) { head->data = 1; head->next…
```c #include int a[2000]; int b[2000]; int c[2000]; int d[2000]; int mins(int x, int y) { if (x >= y) { return y; } return x; } int Time(int a[], int len,int a…
在讨论《能来个c语言的解法吗,求求》回复:
@[DioxygenDifluoride](/user/260985) 大一得学c语言。。。
```c #include int n, m, v[4000], w[4000], f[4000][4000];//v是体积,w是价值 int max(int x, int y) { if (x >= y) { return x; } return y; } int main() { scanf("%d%d", &n,…
```c #include int n, m,mid; int a[1000005]; int b[1000005]; int ss(int x,int begin, int end) { if (begin > end) { return -1; } mid = (begin + end) / 2; if (a[mi…
```c #include #include int n, ans = 0; int a[100005]; struct road { int d; int num; }p[100005]; int cmp(struct road* a, struct road* b) { return a->d - b->d; }…
在讨论《到底哪里错了!!!80分》回复:
谢谢大佬,已关
```c #include int n, x; int a[1000050]; int main() { int ans = 0; scanf("%d%d", &n, &x); for (int i = 1; i x) { ans += a[1] - x; a[1] = x; } for (int i = 1; i x…
在讨论《全WA,大佬帮帮忙》回复:
过了,忘换行了。。。
```c #include #include int sum_t[1005]; struct peo { int num; int t; }p[1005]; int cmp(struct peo* a, struct peo* b) { return a->t - b->t; } int main() { int n;…
在讨论《80分,求大佬调》回复:
能在我写的基础上调一下吗
在讨论《66,来个大佬帮帮我》回复:
能帮我调一下我的代码吗,求求
```c #include #include int n, t; double sum = 0; struct gold { int m; int v; }p[105]; int cmp(struct gold *a,struct gold *b) { return a->v * b->m v * a->m; } in…
```c #include #include int prime(int x) { if (x == 1) { return 0; } if (x == 2 || x == 3) return 1; for (int i = 2; i = 1000 && x = 100000 && x <= 999999)) retu…
```c #include #include int n, m; int a[105][25]; double grade[105]; int cmp(const void* x, const void* y) { return *(int*)x - *(int*)y; } int main() { scanf("%d…
```c #include #include #include int n; char a[21][105]; bool cmp(const void*x, const void* y) { return (*(char*)x + *(char*)y > *(char*)y + *(char*)x); } int ma…
在讨论《用qsort时间超了怎么办》回复:
@[Air_Color5](/user/768577) 我是小白,听不懂。。。
```c #include #include int a[5000005]; int n, k; int cmp(const void* a, const void* b) { return *(int*)a - *(int*)b; } int main() { scanf("%d%d", &n, &k); for (…
在讨论《用qsort为什么不行》回复:
@[SuperAlex4](/user/179187) 为什么不对
```c #include #include int a[2000005]; int n, m; void cmp(const void* a, const void* b) { return *(int*)a - *(int*)b; } int main() { scanf("%d%d", &n, &m); for…
```c #include #include #include int n, m; int a[2000005], b[2000005], c[2000005], d[2000005]; void px(int r,int l) { if (r >= l) { return; } int mid = rand() %…
```c #include int n, k; int a[5000001]; void swap(int *x, int *y) { int tmp = *x; *x = *y; *y = tmp; } void px(int begin,int end) { if (begin >= end) { return;…
在讨论《大佬帮忙看看为什么不行》回复:
大佬能告诉我这为什么不行吗
```c #include #include #include int n, k; int a[5000001], b[5000001], c[5000001], d[5000001]; void px(int s, int l) { if (s >= l) { return; } int mid = rand() %…
在讨论《60分,大佬帮忙看看》回复:
@[difficultlong](/user/1435692) 没听懂。。。
```c #include int a[100][100]; int b[100][100]; int dir[8][2] = { {1,2},{2,1},{-1,2},{-1,-2},{1,-2},{2,-1},{-2,1},{-2,-1} }; int bx, by, hx, hy,tx,ty; int main(…