版本比较
从2026年5月份开始的日常杂记
正文
增加 123 行删除 6 行
182 行未改动全部展开183184185186187187188189189190191192193231 行未改动全部展开4254264274284294294304314324332 行未改动436437438439440440441442442443444444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561182 行未改动全部展开
——好烦。
#### 8.2### 8.2
##### 13:20#### 13:20
查到的文案
```231 行未改动全部展开很怕真的就oiwhk双废了。
(20:52)
##### 20:57#### 20:57
哦哦对了 还有一些成绩没记录呢。
|学科 |分数 |满分 |班排 |年排 2 行未改动|物理|100 |100|1 |1 |
语文是上周的周考的 物理是上上周的。
#### 10.3### 10.3
##### 19:19#### 19:19
啊有个叫睡神的小朋友是个甜猪受受还天天骗别人说自己是攻但是ta声音太好听了我不忍心骂ta怎么办。。啊有个叫睡神的小朋友好可爱。
### 10.4
#### 20:58
今天模拟赛依旧打得很差啊。
但是下午把题补得差不多了,只剩下T3啦。 然后T3是期望我不会啊,于是因为明天要集中练期望所以留到明天一起写。
开心捏今天下午zjj同学竟然夸我码风好看OvO。
然后写了个香香软软而且好像还挺干净(就输入那个地方比较史)的线段树(补的T4)。
(第一次线段树写这么顺有点激动。
纪念一下?
```cpp#include<bits/stdc++.h> #define ll long longusing namespace std;
const int maxn = 1e5 + 10;int a[maxn]; int n, m, op, l, r, x;struct Segtree{ struct node { int mx, l, r; ll sum = 0; } t[maxn << 2]; void up(int q) { t[q].mx = max(t[q << 1].mx, t[q << 1 | 1].mx); t[q].sum = t[q << 1].sum + t[q << 1 | 1].sum; } void build(int q, int l, int r) { t[q].l = l, t[q].r = r; if (l == r) { t[q].mx = t[q].sum = a[l]; return; } int mid = (l + r) >> 1; build(q << 1, l, mid); build(q << 1 | 1, mid + 1, r); up(q); } void update(int q, int pos, int val) { if (t[q].l == t[q].r) { t[q].mx = t[q].sum = val; return; } int mid = (t[q].l + t[q].r) >> 1; if (mid >= pos) update(q << 1, pos, val); else update(q << 1 | 1, pos, val); up(q); } ll query(int q, int l, int r) { if (t[q].l >= l && t[q].r <= r) { return t[q].sum; } ll tmp = 0; int mid = (t[q].l + t[q].r) >> 1; if (l <= mid) tmp += query(q << 1, l, r); if (r > mid) tmp += query(q << 1 | 1, l, r); return tmp; } void mod_update(int q, int l, int r, int mod) { if (t[q].mx < mod) return; if (t[q].l == t[q].r) { t[q].mx %= mod; t[q].sum %= mod; return; } int mid = (t[q].l + t[q].r) >> 1; if (l <= mid) mod_update(q << 1, l, r, mod); if (r > mid) mod_update(q << 1 | 1, l, r, mod); up(q); }}tree;
signed main() { cin >> n >> m; for (int i = 1; i <= n; i ++ ) { cin >> a[i]; } tree.build(1, 1, n); while (m -- ) { cin >> op >> l >> r; if (op == 1) cout << tree.query(1, l, r) << "\n"; else if (op == 2) { cin >> x; tree.mod_update(1, l, r, x); } else tree.update(1, l, r); } return 0; }```
### 10.16
#### 18:21
记录这次糟糕的月考。
|科目 |分数 | 班排 |年排 |挂分情况(包括不应有失误) ||:-:|:-:|:-:|:-:|:-:|| 语文| 121.5 | 1 | 2 | 10.5 || 数学| 112| bzd,反正很低就是了 | 195 | 25 || 英语| 140.5| 3 | 25 | 8 || 物理| 110| 6 | 86 | 9 || 总分|bzd(忘了,后面看了来补一下)|bzd|31(qwq|52.5|
###
####