啥也不会的一只猫(喵喵喵) || 资瓷私信壶关喵 || 看主页食用方法:https://www.cnblogs.com/Gavinbeta/p/18691845 || 初二蒟蒻 || 不在学术模式
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp #include #include #include #include #include using namespace std; typedef long long ll; ll B(int i, ll h, const vector & A, const vector & P) { ll cost1…
我检查了Summly仓库,发现代码存在几个关键问题需要改进: ### 1. 摘要后处理逻辑问题(高风险) 在`processor.py`的`summarize_text`方法中: ```python summary = summary.replace(summary[summary.index(' ')+1], '')…
## B4356 [GESP202506 二级] 数三角形 ### 题目重述 给定正整数 n,求直角边长 a, b 均不超过 n 的不同直角三角形的数量,要求三角形面积为整数。两个三角形相同当且仅当直角边相同(考虑顺序)。 ### 解题思路 1. **数学分析**: - 面积公式:S = (a×b)/2 - 要使 S…
## B4357 [GESP202506 二级] 幂和数 ### 题目重述 给定正整数区间 [l, r],求其中满足条件的整数 n 的数量,条件是 n 可以表示为两个 2 的幂次之和,即 n = 2? + 2?(x, y 为非负整数)。 ### 解题思路 1. **问题分析**: - 需要判断区间内每个数是否能表示为两…
在讨论《0分求调》回复:
@[__Unsigned__](luogu://user/1412120) 已关谢谢
第一题 ```cpp #include #include #include #include #include using namespace std; struct node{ int l,r; }a[1001000];//记录每个节点的左右节点 int Max=-1,n; void dfs(int root,int…
在讨论《全WA求调》回复:
完结此问题 ```cpp #include #include #include using namespace std; const int maxn = 1005; // 最大顶点数 int mat[maxn][maxn]; // 邻接矩阵 vector adj[maxn]; // 邻接表 int main() {…
好玩的网站 休闲 florr.io 2NUKEMAP(官网入口:https://nuclearsecrecy.com/nukemap/) 驾驶 GeoFS飞行模拟器(www.geo-fs.com) Silk交互光影飞行(weavesilk.com) 中国模拟飞行网(www.sinofsx.com) FSCen…
```cpp #include #include #include using namespace std; const int maxn=1005; struct edge { int v,w; }; vector e[maxn]; int n,m; bool cmp(edge A,edge B){ return A…
这段代码实现了快速幂算法,用于高效计算 \( B^P \mod K \) 的值。快速幂算法通过二分思想将指数分解,显著降低计算复杂度(从 \( O(P) \) 优化到 \( O(\log P) \)。以下是对代码的详细解释: ### 代码功能 1. **输入**:三个整数 \( B \)(底数),\( P \)(指数)…
```cpp #include using namespace std; int main(){ int n,m,sum[1001][1001],x1,x2,y1,y2; cin>>n>>m; for(int i=1;i >x1>>y1>>x2>>y2; for(int j=x1;j<=x2;j++){ for(int…
在讨论《40分求调》回复:
@[AnotherDream](luogu://user/1208546)谢谢
在讨论《40分求调》回复:
一青一紫
```cpp #include #include using namespace std; int main(){ int n,m,s[10000],c[1000],b[1000],y=1,sum=0; cin>>n; for(int i=1;i >s[i]; } cin>>m; for(int i=1;i >c[i]…
在讨论《WA40,,求调》回复:
@[Zhi_ptb](luogu://user/1383823) 忘记刷新了没看到,不过已经解决。 再次感谢你的帮助
在讨论《WA40,,求调》回复:
```cpp #include using namespace std; unsigned long long a,b; unsigned long long gcd(unsigned long long a,unsigned long long b){ return b==0?a:gcd(b,a%b); } unsi…
在讨论《WA40,,求调》回复:
@[Zhi_ptb](luogu://user/1383823) ```cpp #include using namespace std; int GCD(long long a,long long b){ if(b==0){ return a; } else return GCD(b,a%b); } int LCM(…
```cpp #include using namespace std; int GCD(long long a,long long b){ if(b==0){ return a; } else return GCD(b,a%b); } int LCM(int a,int b){ return a*b/GCD(a,b)…
在讨论《Luogu Academic & 洛谷官方核心用户群》回复:
qp
AC代码出锅啦! ```cpp #include using namespace std; int a[110][110],last[110][110]; int main() { int n,m,x,y,x1,x2,y1,y2; cin>>n>>m>>x>>y; //第一步,先记录轰炸的情况; for(int k=1…
#include using namespace std; int main() { std::ios::sync_with_stdio(0); std::cin.tie(0); std::cout.tie(0); int a, b, c, d, x; cin >> a >> b >> c >> d >> x; int…
在讨论《都是re,不明白哪里不对了》回复:
AC代码出锅啦 ```cpp #include using namespace std; int main() { int m,n,i,j,a[10]={0}; cin>>m>>n; for(i=m;i 0;j/=10) { if(j%10==0) a[0]++; else if(j%10==1) a[1]++; el…