上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页
摘要: 牛客 周赛88 20250410 https://ac.nowcoder.com/acm/contest/106318 A: 题目大意: void solve(){ int a,b,c; cin>>a>>b>>c; if (c>=a*b) cout<<"YES"; else cout<<"NO"; 阅读全文
posted @ 2025-04-13 14:27 才瓯 阅读(27) 评论(0) 推荐(0)
摘要: 蓝桥 月赛26 20250403 https://www.lanqiao.cn/oj-contest/senior-26/ A: 题目大意:求 \(\lceil 2025/15\rceil\) void solve(){ cout<<135; } 签到 B: 题目大意: void solve(){ 阅读全文
posted @ 2025-04-13 14:27 才瓯 阅读(15) 评论(0) 推荐(0)
摘要: 2025CDUT蓝桥杯模拟赛 https://ac.nowcoder.com/acm/contest/106665 A: 前缀和(写得好的暴力也能过) const int N=1e6+10; LL p[N]; void init(){ for (int i=1;i<=N;i++){ int j=i; 阅读全文
posted @ 2025-04-09 20:27 才瓯 阅读(64) 评论(0) 推荐(0)
摘要: 蓝桥 周赛27 20250402 https://www.lanqiao.cn/oj-contest/senior-27/ A: 题目大意:计算 \(\sum_{i=1}^{16}i\) void solve(){ cout<<(1+16)*16/2; } 签到 B: 题目大意:给定字符串 \(s\ 阅读全文
posted @ 2025-04-06 22:09 才瓯 阅读(8) 评论(0) 推荐(0)
摘要: 牛客 周赛87 20250401 https://ac.nowcoder.com/acm/contest/105623 A: 题目大意:给定 \(a,b,c\) 判断是否 \(b<a,b<c\) 成立 #include<bits/stdc++.h> #define cintie ios::sync_ 阅读全文
posted @ 2025-04-06 22:09 才瓯 阅读(20) 评论(0) 推荐(0)
摘要: 牛客 周赛86 20250328 https://ac.nowcoder.com/acm/contest/104637 A: 题目大意:给定 \(x\) 判断需要多少个 \(y\) 才能凑够 #include<bits/stdc++.h> #define cintie ios::sync_with_ 阅读全文
posted @ 2025-04-06 22:09 才瓯 阅读(18) 评论(0) 推荐(0)
摘要: KMP字符串匹配算法 常见的 \(O(n*m)\) 暴力算法 for (int i=1;i<=n;i++){ int j,k; for (j=i,k=1;k<=m;j++,k++){ if (s1[j]!=s2[k]) break; } if (k==m) cout<<i; } 最外层用 \(i\) 阅读全文
posted @ 2025-03-28 17:32 才瓯 阅读(62) 评论(0) 推荐(0)
摘要: 牛客 小白112 20250326 https://ac.nowcoder.com/acm/contest/103957 A: 题目大意:天平一端有 \(w\) 重的物品,给定砝码 \(a,b\) 判断能否是天平平衡 #include<bits/stdc++.h> #define cintie io 阅读全文
posted @ 2025-03-28 17:30 才瓯 阅读(23) 评论(0) 推荐(0)
摘要: 牛客 周赛85 20250320 https://ac.nowcoder.com/acm/contest/103948 A: 题目大意:有 \(n\) 个石头,每次取走一个判断谁获胜 #include<bits/stdc++.h> #define cintie ios::sync_with_stdi 阅读全文
posted @ 2025-03-28 17:29 才瓯 阅读(18) 评论(0) 推荐(0)
摘要: 天梯赛选拔赛 20250321 写在开头: 这场开头率先开出来 \(5\) 道题,本以为一帆风顺,结果没有认真读题导致E题卡了很久(真的很久),看别人排名超过越来越焦虑 A题也可以线段树暴力打 \(60\) 分的,但是已经做昏了头没有写出来板子,甚至纯暴力的 \(25\) 分都没有,理想分数应该在7 阅读全文
posted @ 2025-03-21 21:20 才瓯 阅读(30) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页