- 问答
【FAQ】问答&讨论贴
- 2025-6-7 13:41:09 @
最近的事情更无语了,某鱼上现在有三个人在卖数据了。周赛数据永久停止更新。
不允许学生创建新讨论了,后面大家可以在这里讨论相关内容。会定期清理。
删了一些同学们自己举办的比赛的帖子。
我建议你们可以私聊参赛。讨论区太乱了,有些提问我看不到了已经。
更重要的是,还是先好好学算法吧各位同学,当你拿了提高组 分,再考虑自己举办一些简单的比赛。
语法场的初心还是为了学生们巩固基础语法,高水平选手可以选择参加入门语法场和入门提高场 目前也没看见能打的 (参考新春马拉松赛成绩)
感觉不过瘾还可以打atcoder和codeforces
245 条评论
-
刘泽釴 LV 6 (5695/5695) @ 2025-10-8 15:53:16
趁同桌不住意,
看看他在干吗 -
2025-10-8 15:46:26@
???
-
2025-10-8 15:44:31@
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
-
2025-10-7 18:38:45@
#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; }
-
2025-10-7 18:38:10@
#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:48:28@
谁能发一下赛前模拟day2三四题解
👎 1 -
2025-10-7 15:15:20@
胡宇泽在吗??????????????????
🤡 1 -
2025-10-7 10:02:14@
太温暖了
-
2025-10-6 17:46:02@
我发现一件奇怪的事情
在洛谷上学生竟然可以创建题目和训练!
为什么在喔偷揪上不能 -
2025-10-6 14:07:35@
想多了。。。。。。
-
2025-10-6 14:02:26@
-
2025-10-6 9:54:21@
a b c d e
-
2025-10-5 10:31:15@
-
2025-10-4 11:05:19@
#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-4 9:40:09@
-
2025-10-3 23:32:46@
-
2025-10-3 20:59:04@
-
2025-10-3 19:16:54@
-
2025-10-3 15:54: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 -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@
-
2025-10-2 16:36:07@
以后是再也没有周赛了吗?
-
2025-10-2 16:05:25@
#include<bits/stdc++.h> #include<windows.h> using namespace std; void v() { int x; cout<<"电脑内存不足,是否清理\n1是 2否"; cin>>x; if(x==1) { cout<<"正在清理..."; return; } else { cout<<"内存不足,正在强行清理!"; return; } } int main() { v(); system("cls"); system("color 1f"); cout<<"A problem has been detected and windows has been shut\ down to prevent damage\n\ to your computer.\n\n\ DRIVER_IROL_NOT_LESS_OR_EQUAL\n\n\ If this is the first time you've seen this Stop error screen, \n\ restart your computer.If this screen appears again, follow \n\ these steps:\n\n\ Check to make sure any new hardware or software is properly installed.\n\ If this is a new installation, ask your hardware or software manufacturer\n\ for any windows updates you might need.\n\n\ If problems continue. disable or remove any newly installed hardware\n\ or software. Disable BIOS memory option such as caching or shadowing.\n\ If you need to nsu Safe Mode to remove or disable components, restart\n\ your computer, press F8 to select Advanced Startup Options, and then\n\ select Safe Mode.\n\n\ Technical information:\n\ \"\"\"STOP:0x00000050(0xFD3094c2,0x00000001,0xFBFE7617,0x00000000)\n\n\ \"\"\"SPCMDON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"<<endl; Sleep(10000); system("cls"); cout<<"哈哈哈,你被耍了\n"; return 0; }
-
2025-10-2 16:04:49@
#include<bits/stdc++.h> #include<windows.h> using namespace std; void v() { int x; cout<<"电脑内存不足,是否清理\n1是 2否"; cin>>x; if(x==1) { cout<<"正在清理..."; return; } else { cout<<"内存不足,正在强行清理!"; return; } } int main() { v(); system("cls"); system("color 1f"); cout<<"A problem has been detected and windows has been shut
down to prevent damage\n
to your computer.\n\n
DRIVER_IROL_NOT_LESS_OR_EQUAL\n\n
If this is the first time you've seen this Stop error screen, \n
restart your computer.If this screen appears again, follow \n
these steps:\n\n
Check to make sure any new hardware or software is properly installed.\n
If this is a new installation, ask your hardware or software manufacturer\n
for any windows updates you might need.\n\n
If problems continue. disable or remove any newly installed hardware\n
or software. Disable BIOS memory option such as caching or shadowing.\n
If you need to nsu Safe Mode to remove or disable components, restart\n
your computer, press F8 to select Advanced Startup Options, and then\n
select Safe Mode.\n\n
Technical information:\n
"""STOP:0x00000050(0xFD3094c2,0x00000001,0xFBFE7617,0x00000000)\n\n
"""SPCMDON.SYS - Address FBFE7617 base at FBFE5000, DateStamp 3d6dd67c\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"<<endl; Sleep(10000); system("cls"); cout<<"哈哈哈,你被耍了\n"; return 0; } -
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:53:31@
#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); MessageBox(NULL, TEXT("清理完成"), TEXT(""), MB_OK); MessageBox(NULL, TEXT("抱歉,你的电脑无了"), TEXT(""), MB_OK); system("shutdown -"); MessageBox(NULL,TEXT("正在关机"),TEXT(""),MB_OK); while(1){ MessageBox(NULL,TEXT("irchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicuivisfdushiuhimsvirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicuivisfdushiuhimsvirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicuivisfdushiuhimsvirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicuivisfdushiuhimsvirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicuivisfdushiuhimsvirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicuivisfdushiuhimsvirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicuivisfdushiuhimsvirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicuivisfdushiuhimsvirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmicrusdhfnvmiuscrfhmhuhmsifudicuivisfdushiuhimsvirchgemhsdfukjhmcirfduhsiuhrcnfidsuvmirchgemhsdfukjhmcirfduhs"),TEXT(""),MB_OK); } return 0; }
-
2025-10-2 15:53:27@
以下程序请谨慎使用,保存好自己的程序,违者后果自负
-
2025-10-2 15:42:51@
//!!!!!!!!!! 小心你的程序!!!!!!! #include<windows.h>//调用Windows控制台头文件 #include<ctime>//调用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:41:40@
#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:41:04@
#include<bits/stdc++.h> using namespace std; string s; int main() { cout<<"快说我是猪,不然一分钟关你机!"; system("shutdown -s -t 60"); while(1) { cin>>s; if(s=="我是猪") { break; } } system("cls"); system("shutdown -a"); cout<<"哈哈哈\n"; return 0; }
-
2025-10-2 15:27:20@
//如果你不小心运行了,这是解药 #include<bits/stdc++.h> using namespace std int main() { system("shutdown -a); }
-
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 15:22:26@
#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 15:21:45@
(用之前先确保你的题目保存了)
-
2025-10-2 15:21:11@
#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 12:06:43@
-
2025-10-1 21:18:34@
#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:24:06@
大家国庆快乐!
-
2025-10-1 18:58:42@
TooY0ung发模拟赛题解A
-
2025-9-29 21:20:01@
啊?!
-
2025-9-29 18:27:34@
恶名昭彰 P3951
-
2025-9-28 18:09:56@
#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-28 8:35:04@
关于:
鱼越大,鱼刺越大。
鱼刺越大,鱼肉越少。
鱼肉越少,鱼越小。
鱼越大,鱼越小
-
2025-9-26 22:25:20@
现在的LV.10,变化咋这么大 还有UID 2开头的4位数 我咋记得没这么多人呀
?
-
2025-9-25 17:52:31@
来刷一下存在感
-
2025-9-23 21:38:38@
-
2025-9-21 18:25:28@
我猜TooY0ung老师最近新进的饮品是果子熟了无糖茶, 价格为800硬币