新人OIer中的限量版蒟蒻
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《求助#19,pts95》回复:
@[sully](/user/633325) 其实是开得足够大就可以了,当时的习惯是把无穷大开到1e10
在讨论《高斯消元样例全过,但0pts,悲》回复:
@[Read_int](/user/400999) 其实是刚学高斯消元然后按着标签刷的,没想到过不了,感谢佬
在讨论《高斯消元样例全过,但0pts,悲》回复:
@[Jairon314](/user/360930) 感谢
```cpp #include #include using namespace std; typedef long long LL; const int N = 2e3 + 10; const LL mod = 998244353; const double eps = 1e-8; LL n, k, x[N], y[…
蒟蒻用了unordered_map,但是没过 ```cpp #include #include using namespace std; const int N = 1010; int n, m, p, q, parent[N], ans; bool res[N]; char flag; unordered_map b…
在讨论《求助#19,pts95》回复:
不好意思蠢了,INF溢出int了,改成long long就A了,此贴完结
```cpp #include #include #include using namespace std; const int N = 1e5 + 10, INF = 1e10; int n; double p; struct node { double a, b; }m[N]; bool check(double…
在讨论《求问一道数据结构(?题》回复:
@[苏联小渣](/user/399286) [可以看看这篇](https://blog.csdn.net/Lucas_FC_/article/details/125837983)
在讨论《求问一道数据结构(?题》回复:
@[苏联小渣](/user/399286) ST表可以到$O(nlogn)$
在讨论《求助,盯着看了1h了》回复:
放个代码吧 ```cpp #include #include #include using namespace std; typedef long long LL; const int N = 410; LL n, a[N], dp[N][N]; int main(void) { cin >> n; for (int…
在讨论《求助,盯着看了1h了》回复:
@[SUPERLWR](/user/216352) 应该是$dp[i][j]=min(dp[i][j],dp[i][m]+dp[m+1][j] + s[j] - s[i - 1])$ 然后去掉下面那一句$dp[i][j]+=s[j]-s[i-1]$
在文章《可以代替线段树的树状数组?——树状数组进阶(1)》发表评论:
图好像炸了呜呜呜呜
在讨论《警示后人》回复:
@[jqsh](/user/320652) 谢谢您,苹果侠
```cpp #include #include #include using namespace std; typedef pair PII; const int N = 110; int n, u, v; int h[N], e[N], ne[N], w[N], idx; bool st[N]; void add(…
在讨论《求助,感觉是算法时间复杂度太大了,70pts》回复:
@[暗夜黑黑黑手](/user/531930) %%%谢谢佬
在讨论《求助,感觉是算法时间复杂度太大了,70pts》回复:
@[__INF__](/user/458493) %%%谢谢谢谢
在讨论《求助,感觉是算法时间复杂度太大了,70pts》回复:
吸氧能过,但是还是想问问能不能优化
```cpp #include using namespace std; const int mod = 1e9 + 7; long long n, res = 1, tmp = 1; inline long long qmi(long long a, long long k, long long p) { long…
在讨论《0分求助嘉人们》回复:
@[ran_Diana](/user/592681) 可以写个快读逐位取模,不然会爆long long 代码自取 ```cpp void read(long long& x) { int f = 1; x = 0; char s = getchar(); while (s > '9' || s = '0') { x =…
在讨论《觉得不该绿》回复:
P1082 同余方程都绿了,这题不该绿吗
在讨论《CRT 60求助!》回复:
@[jpb_Saturn](/user/678965) 蠢了蠢了,谢谢佬
```cpp #include using namespace std; const int N = 15; int n; unsigned long long M = 1, a[N], b[N], x[N], y[N], m[N], res; unsigned long long exgcd(unsigned lon…
在讨论《蒟蒻求助,trie树52分》回复:
已过,AC代码如下: ```cpp #include #include using namespace std; const int N = 3e6 + 10; int t, n, q, son[N][65], cnt[N], idx; char str[N]; int getnum(char x) { if (x >…
在讨论《90分求助,WA了一个点》回复:
@[昒昕](/user/84132) 感谢
在讨论《90分求助,WA了一个点》回复:
@[Aiopr_2378](/user/166234) 不好意思太蠢了,忘记考虑完全买不起的情况了
```cpp #include #include using namespace std; const int N = 1e6 + 10; long long n, a[N], w, m, s, res; int main(void) { scanf("%lld", &n); for (int i = 0; i > 1…
不知道是不是被卡常数了 TLE了两个点 ```cpp #include #include using namespace std; const int N = 3e6 + 1; int t, n, q, son[N][62], cnt[N], idx; string str; inline int getnum(cha…
```cpp #include #include using namespace std; int n, k, a[100005]; class MyQueue_big { public: deque que; void pop(int value) { if (!que.empty() && value == que…
在讨论《警示后人(阴间题意)》回复:
我服了还好是看了讨论区,感谢前人铺路
在讨论《数据是否有缺陷呢?》回复:
@[AlgorithmerSnow](/user/419487) 好的好的,蒟蒻忘记这个辽