青岛57中最唐的人
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp #include using namespace std; long long gcd(int a,int b) { if (b == 0) { return a; } else return gcd(b,a%b); } long long lcm(int a,int b) { return (a*b)…
在讨论《向各位求助》回复:
@[MonKeySort_ZYczc](luogu://user/1524111) 第一 我没有用ai 第二 请你不要用这样的话来对待一个新手 我看不懂你想要表达的意思
https://www.luogu.com.cn/record/234383100 ```cpp #include "algorithm" #include "iostream" using namespace std; struct Q { //强化材料 int sp; //适配 int cost; //花费 };…
```cpp //原题 : 洛谷 P1181 数列分段 #include #include using namespace std; const int MaxSize = 100000; int main() { int n,m,a[100000]; bool visited[100000]; memset(visi…
在讨论《40分,请指出问题 必关》回复:
liwenxuan220 smjh_qd 谢谢,过了 @[smjh_qd](luogu://user/1591683) 你是青岛的吗 (看你的名字带一个 'qd')
真诚推荐IDE : “**啊哈C++ 3.0**” 真的**超级好用** 评测记录 : https://www.luogu.com.cn/record/233665185 ```cpp #include #include using namespace std; int get_digit_sum(int p) { i…
```cpp #include #include using namespace std; char b[36] = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'}; void Turn_to_decimal(string num,in…
在文章《题解:P12176 [蓝桥杯 2025 省 Python B] 书架还原》发表评论:
牛啊 这才6年级
```cpp #include using namespace std; struct P{ int number; int time; int wait_time; }; int n; P a[1001]; int main() { cin >> n; for (int i=1;i > a[i].time; a[i]…
//本蒟蒻是刚刚学算法的入门自学者,请在座大佬多多指教 这个题我用 “贪心” 因为刚学到贪心 ```c #include int n; int coin[3] = {11,5,1};//从大向小排 unsigned long ans = 0; int main() { scanf("%d" , &n); while(n…
```cpp #include using namespace std; short a[8][8]; bool b[9][9] = {0}; int T; int m, n; unsigned long ans = 0; bool Judge(int x, int y); void search( int row,…
```cpp #include using namespace std; int x[8] = {1, 1, -1, -1, 2, 2, -2, -2}, y[8] = {2, -2, 2, -2, 1, -1, 1, -1}; //移动方式 int a[101][101]; //棋盘 unsigned long lo…
https://www.luogu.com.cn/record/231230029 评测记录 ```cpp #include #include using namespace std; char a1[50001]; int a[50001]; int b; int c[50001]; int main() { int…
在讨论《哪里有问题请帮我找一下,找了一上午,最后直接折了》回复:
@[Dark_Crown](luogu://user/816937) 祝君生活一帆风顺
```cpp //搜索dfs 走迷宫 #include #include using namespace std; int m,n;//有 m 行、n 列 short a[20][20]; //迷宫 bool b[20][20] = {0},found = false; int ans[1000][2]; short…
```cpp #include #include using namespace std; int n,a,b; bool isPrime(int x) { if (x==2) return true; if (x==1) return false; int a=(int)sqrt(x)+1; for (int i=a…
https://www.luogu.com.cn/record/229721854 (上面应该是评测记录) ```cpp #include using namespace std; char s[101][101]; bool b[101][101] = {0}; int x[4] = {0,0,-1,1} ,y[4]…
```cpp //不含前导零且相邻两个数字之差至少为 2 的正整数被称为 windy 数。windy 想知道,在 a 和 b 之间,包括 a 和 b ,总共有多少个 windy 数? #include using namespace std; short d[10000001]; bool iwn(int i) { i…
啊哈C++上过了,dev5.11也过了,上了洛谷直接0分 全是RE Received signal 11: Segmentation fault with invalid memory reference. ~~越个界又能怎~~ 请大家帮我找找哪里越界了 ```cpp #include using namespace…