最近的事情更无语了,某鱼上现在有三个人在卖数据了。周赛数据永久停止更新。

不允许学生创建新讨论了,后面大家可以在这里讨论相关内容。会定期清理。

删了一些同学们自己举办的比赛的帖子。

我建议你们可以私聊参赛。讨论区太乱了,有些提问我看不到了已经。

更重要的是,还是先好好学算法吧各位同学,当你拿了提高组 200200 分,再考虑自己举办一些简单的比赛。

语法场的初心还是为了学生们巩固基础语法,高水平选手可以选择参加入门语法场和入门提高场 目前也没看见能打的 (参考新春马拉松赛成绩)

感觉不过瘾还可以打atcoder和codeforces

576 条评论

  • #include <bits/stdc++.h> using namespace std;

    int main(){ char a, b, c, d; cin >> a >> b >> c >> d; if(a == 'D' || b == 'D' || c == 'D' || d == 'D'){ cout << "Never give up."; }else if(a == 'C' || b == 'C' || c == 'C' || d == 'C'){ cout << "This is ok."; }else if(a == 'A' || b == 'A' || c == 'A' || d == 'A'){ cout << "I'm so happy."; }else{ cout << "This is ok."; } return 0; }

    • #include <bits/stdc++.h> using namespace std;

      int main(){ int t, d, t1, d1, t2, d2; cin >> t >> d >> t1 >> d1 >> t2 >> d2; int min = INT_MAX; if (d <= d1) { if (t >= t1) { min = 0; } else { min = t1 - t; } } if (d <= d2) { int wait; if (t >= t2) { wait = 0; } else { wait = t2 - t; } if (wait < min) { min = wait; } } if (min == INT_MAX) { cout << -1; } else { cout << min; }

      return 0;
      

      }

      • @ 2025-10-7 16:46:54

        喷了

        • @ 2025-10-7 15:15:20

          胡宇泽在吗??????????????????

          🤡 1
        • 太温暖了

        • 我发现一件奇怪的事情

          在洛谷上学生竟然可以创建题目和训练!

          为什么在喔偷揪上不能

        • @ 2025-10-6 14:07:35

          想多了。。。。。。

          • @ 2025-10-6 14:02:26

            • a b c d e

              • @ 2025-10-5 10:31:15

              • #include <string>
                #include <algorithm>
                #include <map>
                #include <cmath>
                using namespace std;
                int main()
                {
                	long long n;
                	cin>>n;
                	map<long long,long long> m;
                	for(long long i=0;i<n;i++){
                		long long x;
                		cin>>x;
                		m[x]++;
                	}
                	long long count=0;
                	for(auto& pair : m){
                        // cout<<pair.first<<" "<<pair.second<<endl;
                		if (pair.second > 2) {
                            count+=(pair.second/2);
                		}
                	}
                	cout<<count<<endl;
                    return 0;
                }
                

                https://oj.since2018.top/p/A0301

                求调A0301

              • @ 2025-10-3 23:32:46

                • @ 2025-10-3 20:59:04

                  • @ 2025-10-3 19:16:54

                    2025.10.32025.10.3

                    • #include <windows.h>
                      #pragma comment(lib, "User32.lib")
                      int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
                      MessageBox(NULL, TEXT("你的电脑遇到病毒,正在尝试修复..."), TEXT(""), MB_OK);
                      MessageBox(NULL, TEXT("无法修复"), TEXT(""), MB_OK);
                      MessageBox(NULL, TEXT("正在清空你的电脑数据"), TEXT(""), MB_OK);
                      Sleep(5000);
                      MessageBox(NULL, TEXT("清理完成"), TEXT(""), MB_OK);
                      MessageBox(NULL, TEXT("恭喜,你的电脑无了"), TEXT(""), MB_OK);
                      system("shutdown -s -t 30");
                      system("start cmd");
                      MessageBox(NULL,TEXT("正在关机"),TEXT(""),MB_OK);
                      Sleep(10000);
                      system("shutdown -a");
                      MessageBox(NULL,TEXT("哈哈哈,逗你玩的>_<"),TEXT(""),MB_OK); 
                      return 0;
                      }
                      
                      • @ 2025-10-2 16:43:56

                        这边也是扩团好吧

                        https://www.luogu.com.cn/team/91256

                        • @ 2025-10-2 16:36:07

                          以后是再也没有周赛了吗?

                        • @ 2025-10-2 15:57:43

                          //!!!!!!!!!! 小心你的程序!!!!!!! #include<windows.h>//调用Windows控制台头文件 #include//调用C语言时间头文件 using namespace std;//使用标准名字空间 int main()//主函数开始 { int x=GetSystemMetrics(SM_CXSCREEN);//获取屏幕边界x int y=GetSystemMetrics(SM_CYSCREEN);//获取屏幕边界y srand(time(0));//使用随机变化值空间 for(int i=1;i<=1000;i++){//无限循环 SetCursorPos(rand()%x,rand()%y); Sleep(1);//依次将鼠标指针移到屏幕上的随机位置 } return 0;//主函数结束,返回0 }

                          • @ 2025-10-2 15:24:40

                            #include <windows.h> #pragma comment(lib, "User32.lib") int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, TEXT("你的电脑遇到病毒,正在尝试修复......"), TEXT(""), MB_OK); MessageBox(NULL, TEXT("无法修复!"), TEXT(""), MB_OK); MessageBox(NULL, TEXT("正在清空你的电脑数据!"), TEXT(""), MB_OK); Sleep(5000); MessageBox(NULL, TEXT("清理完成!"), TEXT(""), MB_OK); MessageBox(NULL, TEXT("恭喜,你的电脑没了!"), TEXT(""), MB_OK); system("shutdown -"); MessageBox(NULL,TEXT("正在关机!"),TEXT(""),MB_OK); return 0; }

                            • @ 2025-10-2 12:06:43

                              • #include <bits/stdc++.h>
                                using namespace std;
                                
                                int main(){
                                    int x, y, z, w;
                                    cin >> x >> y >> z >> w;
                                    if(z == 0 || w == 0){
                                        if((x == 0 && z == 0) && (y == 0 && w == 0)){
                                            cout << 1;
                                        }else{
                                            cout << -1;
                                        }
                                        return 0;
                                    }
                                    if(x % z != 0 || y % w != 0){
                                        cout << -1;
                                        return 0;
                                    }
                                    int c1 = x / z;
                                    int c2 = y / w;
                                    if(c1 > 0 && c1 == c2){
                                        cout << c1;
                                    } else {
                                        cout << -1;
                                    }
                                    return 0;
                                }
                                
                                

                                菜鸟求解

                                • @ 2025-10-1 20:02:46

                                  • @ 2025-10-1 19:55:41

                                    大家注意看

                                    • @ 2025-10-1 19:58:01

                                      纳尼???????????????????????????????????????????????????????????!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!还能这么玩!!!!!!!!!!!!

                                  • @ 2025-10-1 19:24:06

                                    大家国庆快乐!

                                    • @ 2025-10-1 18:58:42

                                      TooY0ung发模拟赛题解A

                                      • 啊?!

                                        • @ 2025-9-29 18:27:34

                                          恶名昭彰 P3951

                                          • #include<bits/stdc++.h>
                                            using namespace std;
                                            int data[1005][1005],r,ans=-1;
                                            struct ST{
                                            	bool visit;
                                            	int value;
                                            };
                                            ST f[1005][1005];
                                            int find_with_mem(int row,int column){
                                            	if(row<=0)	return -1;
                                            	if(column<=0)	return -1;
                                            	if(column>row)	return -1;
                                            	if(f[row][column].visit )	return f[row][column].value ;
                                            	int left=find_with_mem(row-1,column-1);
                                            	int right=find_with_mem(row-1,column);
                                            	if(left>right){
                                            		f[row][column].value =left+data[row][column];
                                            		f[row][column].visit =true;
                                            	}
                                            	else if(right>left){
                                            		f[row][column].value =right+data[row][column];
                                            		f[row][column].visit =true;
                                            	}
                                            	else{
                                            		if(left==-1){
                                            			f[row][column].value =data[row][column];
                                            			f[row][column].visit =true;
                                            		}
                                            		else{
                                            			f[row][column].value =left+data[row][column];
                                            			f[row][column].value =true;
                                            		}
                                            	}
                                            	return f[row][column].value ;
                                            }
                                            int main(){
                                            	ios::sync_with_stdio(false);
                                            	cin.tie(0);
                                            	cin>>r;
                                            	for(int i=1;i<=r;i++){
                                            		for(int j=1;j<=i;j++){
                                            			cin>>data[i][j];
                                            		}
                                            	}
                                            	for(int i=1;i<=r;i++){
                                            		ans=max(ans,find_with_mem(r,i));
                                            	}
                                            	cout<<ans;
                                            }
                                            

                                            为什么就66TLE了

                                          • 关于:

                                            鱼越大,鱼刺越大。

                                            鱼刺越大,鱼肉越少。

                                            鱼肉越少,鱼越小。

                                            鱼越大,鱼越小

                                          • @ 2025-9-26 22:25:20

                                            现在的LV.10,变化咋这么大 还有UID 2开头的4位数 我咋记得没这么多人呀

                                            ?

                                            • 来刷一下存在感

                                              • @ 2025-9-23 21:38:38

                                              • @ 2025-9-21 17:20:27

                                                怎么找老奶奶

                                                • @ 2025-9-21 16:54:09

                                                  @ P6207 50分WA求调

                                                  #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>
                                                  #define ll long long
                                                  #define ull unsigned long long
                                                  #define eps 1e-10
                                                  #define INF 1e9
                                                  #define delta 0.996
                                                  #define T 3000
                                                  #define pi acos(-1.0)
                                                  #define ld long double
                                                  using namespace std;
                                                  const ll mod1=1e9+7;
                                                  const ll mod2=998244353;
                                                  const int maxn = 2e5 + 10;
                                                  const int maxm = 1e6 + 10;
                                                  const ll inf=1e18L;
                                                  typedef pair<int,int>Pii;
                                                  typedef pair<int,ll>Pil;
                                                  using namespace std;
                                                  int r,c;
                                                  char mp[120][90],f;
                                                  int ax[12000],ay[12000],dx[]={1,-1,0,0},dy[]={0,0,1,-1},vis[120][90];
                                                  void dfs(int x,int y,int k){
                                                      if(f||vis[x][y]||x<1||x>r||y<1||y>c||mp[x][y]=='*')return;
                                                      if(x==r&&y==c){
                                                          f=1;
                                                          for(int i=1;i<k;i++){
                                                              cout<<ax[i]<<" "<<ay[i]<<"\n";
                                                          }
                                                          cout<<r<<" "<<c;
                                                      }
                                                      vis[x][y]=1,ax[k]=x,ay[k]=y;
                                                      for(int i=0;i<3;i++){
                                                          dfs(x+dx[i],y+dy[i],k+1);
                                                      }
                                                      return;
                                                  }
                                                  int main(){
                                                      ios::sync_with_stdio(false);
                                                      cin.tie(0);
                                                      cin>>r>>c;
                                                      for(int i=1;i<=r;i++){
                                                          for(int j=1;j<=c;j++){
                                                              cin>>mp[i][j];
                                                          }
                                                      }
                                                      dfs(1,1,1);
                                                      return 0;
                                                  }
                                                  
                                                • @ 2025-9-20 21:53:30

                                                  Vs

                                                  Vs

                                                  • @ 2025-9-20 19:53:38

                                                    ???

                                                    • #include <bits/stdc++.h>
                                                      using namespace std;
                                                      
                                                      int main(){
                                                          int y;
                                                          cin >> y;
                                                          if(y % 4 != 0){
                                                              cout << "No";
                                                          }else if(y % 4 == 0 && y % 100 != 0){
                                                              cout << "Yes";
                                                          }else if(y % 100 == 0 && y % 400 != 0){
                                                              cout << "No";
                                                          }else if(y % 400 == 0 && y % 3200 != 0){
                                                              cout << "Yes";
                                                          }else if(y % 3200 == 0 && y % 172800 != 0){
                                                              cout << "No";
                                                          }else if(y % 172800 == 0){
                                                              cout << "Yes";
                                                          }
                                                          return 0;
                                                      }
                                                      
                                                      
                                                      • @ 2025-9-18 19:52:17

                                                        为什么没有周赛了

                                                        • @ 2025-9-19 10:26:46

                                                          赛前狂练和模拟赛都需要准备题目(不公开),没空出题。

                                                          以及现在市面上好的比赛确实很多,卷不动了,也没有意义卷。

                                                      • 1

                                                        • 求助A0282

                                                          #include <iostream>
                                                          #include <vector>
                                                          #include <string>
                                                          #include <algorithm>
                                                          #include <cmath>
                                                          #include <queue>
                                                          #include <map>
                                                          #include <set>
                                                          #include <stack>
                                                          #include <unordered_map>
                                                          #include <unordered_set>
                                                          using namespace std;
                                                          
                                                          int main() {
                                                          	string s;
                                                          	vector<string> v;
                                                              int n;
                                                          	cin >> n;
                                                          	for(int i = 0;i<n;i++){
                                                          		cin >> s;
                                                          		if(s=="add"){
                                                          			getline(cin,s);
                                                          			string a = s.substr(1,s.size());
                                                          			v.push_back(a);
                                                          		}else if(s=="find"){
                                                          			getline(cin,s);
                                                          			string a = s.substr(1,s.size());
                                                          			if(find(v.begin(),v.end(),a)!=v.end()){
                                                          				cout<<"yes"<<endl;
                                                          			}else{
                                                          				cout<<"no"<<endl;
                                                          			}
                                                          		}
                                                          	}
                                                              return 0;
                                                          }
                                                          

                                                          传送门

                                                        • wotojo的神秘彩蛋

                                                        • @ 2025-9-16 18:10:11
                                                          #include<bits/stdc++.h>
                                                          using namespace std;
                                                          int main()
                                                          {
                                                              int a;cin>>a;
                                                              cout<<sqrt(a);
                                                          }
                                                          

                                                          《真·运气也是实力的一部分》 注:代码没改过都是一样的代码!!!!!注:代码没改过都是一样的代码!!!!!

                                                          • @ 2025-9-16 17:43:20
                                                            #include<bits/stdc++.h>
                                                            using namespace std;
                                                            struct sss
                                                            {
                                                            	int x,y,z;
                                                            };
                                                            char a[35][35][35];
                                                            bool f[35][35][35];
                                                            int d[35][35][35];
                                                            int fx[]={0,0,-1,1,0,0}; 
                                                            int fy[]={-1,1,0,0,0,0};
                                                            int fz[]={0,0,0,0,-1,1};
                                                            int Sx,Sy,Sz;
                                                            int SSx,SSy,SSz;
                                                            int sx,sy,sz;
                                                            int main()
                                                            {
                                                            	
                                                            	int sx,sy,sz;
                                                            	cin>>sx>>sy>>sz;
                                                            	for(int i=1;i<=sx;i++)
                                                            	{
                                                            		for(int j=1;j<=sy;j++)
                                                            		{
                                                            			for(int k=1;k<=sz;k++)
                                                            			{
                                                            				cin>>a[i][j][k];
                                                            				if(a[i][j][k]=='S')
                                                            				{
                                                            					Sx=i;
                                                            					Sy=j;
                                                            					Sz=k;
                                                            				}
                                                            				if(a[i][j][k]=='E')
                                                            				{
                                                            					SSx=i;
                                                            					SSy=j;
                                                            					SSz=k;
                                                            				}
                                                            			}
                                                            		}
                                                            	}
                                                            	memset(d,0x3f,sizeof(d));
                                                            	queue<sss> q;
                                                            	q.push(sss{Sx,Sy,Sz});
                                                            	d[Sx][Sy][Sz]=0;
                                                            	f[Sx][Sy][Sz]=true;
                                                            	while(!q.empty())
                                                            	{
                                                            		int x=q.front().x;
                                                            		int y=q.front().y;
                                                            		int z=q.front().z;
                                                            		q.pop();
                                                            		for(int i=0;i<8;i++)
                                                            		{
                                                            			int nx,ny,nz;
                                                            			nx=x+fx[i];
                                                            			ny=y+fy[i];
                                                            			nz=z+fz[i];
                                                            			if(nx>sx||nx<1||ny>sy||ny<1||nz>sz||nz<1) continue;
                                                            			if(f[nx][ny][nz]) continue;
                                                            			if(a[nx][ny][nz]=='#') continue;
                                                            			q.push(sss{nx,ny,nz});
                                                            			f[nx][ny][nz]=true;d[nx][ny][nz]=d[x][y][z]+1;
                                                            		}
                                                            	}
                                                            	if(d[SSx][SSy][SSz]>0x3f3f3f3f/2)
                                                            	{
                                                            		cout<<"Trapped!";
                                                            	}
                                                            	else
                                                            	{
                                                            		cout<<"Escaped in "<<d[SSx][SSy][SSz]<<" minute(s).";
                                                            	}
                                                            }
                                                            //我请问呢? RTE?
                                                            [我勒个在线编译器跑不的过去其他网站的编译器就跑过去了( T - T )](https://oj.since2018.top/p/A0024)```
                                                            • @ 2025-9-16 17:48:26

                                                              突然注意到好像是多组数据突然注意到好像是多组数据

                                                            • @ 2025-9-16 17:50:09

                                                              不过到底是几组数据啊不给写..?不过到底是几组数据啊不给写..?

                                                            • @ 2025-9-16 18:21:07

                                                              难道说...要无限循环吗..?难道说...要无限循环吗..?

                                                            • @ 2025-9-16 18:23:47

                                                              粘的时候忘删了多写了个 int sx,sy,sz;

                                                            • @ 2025-9-16 18:26:03
                                                              #include<bits/stdc++.h>
                                                              using namespace std;
                                                              struct sss
                                                              {
                                                              	int x,y,z;
                                                              };
                                                              char a[35][35][35];
                                                              bool f[35][35][35];
                                                              int d[35][35][35];
                                                              int fx[]={0,0,-1,1,0,0}; 
                                                              int fy[]={-1,1,0,0,0,0};
                                                              int fz[]={0,0,0,0,-1,1};
                                                              int Sx,Sy,Sz;
                                                              int SSx,SSy,SSz;
                                                              int sx,sy,sz;
                                                              int main()
                                                              {
                                                              	while(1)
                                                              	{
                                                              		cin>>sx>>sy>>sz;
                                                              		for(int i=1;i<=sx;i++)
                                                              		{
                                                              			for(int j=1;j<=sy;j++)
                                                              			{
                                                              				for(int k=1;k<=sz;k++)
                                                              				{
                                                              					cin>>a[i][j][k];
                                                              					if(a[i][j][k]=='S')
                                                              					{
                                                              						Sx=i;
                                                              						Sy=j;
                                                              						Sz=k;
                                                              					}
                                                              					if(a[i][j][k]=='E')
                                                              					{
                                                              						SSx=i;
                                                              						SSy=j;
                                                              						SSz=k;
                                                              					}
                                                              				}
                                                              			}
                                                              		}
                                                              		queue<sss> q;
                                                              		q.push(sss{Sx,Sy,Sz});
                                                              		d[Sx][Sy][Sz]=0;
                                                              		f[Sx][Sy][Sz]=true;
                                                              		while(!q.empty())
                                                              		{
                                                              			int x=q.front().x;
                                                              			int y=q.front().y;
                                                              			int z=q.front().z;
                                                              			q.pop();
                                                              			for(int i=0;i<8;i++)
                                                              			{
                                                              				int nx,ny,nz;
                                                              				nx=x+fx[i];
                                                              				ny=y+fy[i];
                                                              				nz=z+fz[i];
                                                              				if(nx>sx||nx<1||ny>sy||ny<1||nz>sz||nz<1) continue;
                                                              				if(f[nx][ny][nz]) continue;
                                                              				if(a[nx][ny][nz]=='#') continue;
                                                              				q.push(sss{nx,ny,nz});
                                                              				f[nx][ny][nz]=true;d[nx][ny][nz]=d[x][y][z]+1;
                                                              			}
                                                              		}
                                                              		if(d[SSx][SSy][SSz]>0x3f3f3f3f/2)
                                                              		{
                                                              			cout<<"Trapped!";
                                                              		}
                                                              		else
                                                              		{
                                                              			cout<<"Escaped in "<<d[SSx][SSy][SSz]<<" minute(s).";
                                                              		}
                                                              		memset(d,0x3f,sizeof(d));
                                                              		memset(f,false,sizeof(f));
                                                              	}
                                                              }
                                                              
                                                              
                                                            • @ 2025-9-16 18:26:34

                                                              @ 嗯...改都改了RTE

                                                            • @ 2025-9-16 22:16:38

                                                              @ 不是可以这么写

                                                              while(cin>>sx>>sy>>sz){
                                                              
                                                              }
                                                              
                                                          • @ 2025-9-14 15:49:24

                                                            为什么我改了好几次头像都没改好啊

                                                          • @ 2025-9-14 12:04:48

                                                            @ ......

                                                            • @ 2025-9-13 22:15:50

                                                              [广告] 我的洛谷团队: https://www.luogu.com.cn/team/111252 欢迎加入,但是高级团队试用没了,成员马上爆满,想进的话快点吧QWQ

                                                              • 各位,有没有懂行的,为什么wotojo写

                                                                全局变量会编译报错???

                                                                有没有dalao能解释一哈

                                                                • @ 2025-9-13 8:34:27

                                                                  用array有歧义,你换一个数组名试试。