Green1127

C++代码存放设施 site - 01 所有UTF-8已同步

博客园 首页 新随笔 联系 订阅 管理

2026年1月2日 #

摘要: //源代码转自:https://vijos.org/discuss/5d65f0b4f413620449abf6f2#1566961910 //新代码转自:https://www.luogu.com.cn/blog/369209/sui-ji-mi-gong #include <stdio.h> # 阅读全文
posted @ 2026-01-02 17:14 Green_wang 阅读(1) 评论(0) 推荐(0)

摘要: #include <cstdio> #include <iostream> #include <ctime> #include <conio.h> #include <windows.h> //停顿:Sleep(); #include <cstdlib> //清屏:system("cls"); #i 阅读全文
posted @ 2026-01-02 17:13 Green_wang 阅读(4) 评论(0) 推荐(0)

摘要: //WASD控制/开始游戏 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <conio.h> #include <windows.h> #define W 32 #define H 22 const int SIZ 阅读全文
posted @ 2026-01-02 17:13 Green_wang 阅读(4) 评论(0) 推荐(0)

摘要: #include <cstdio> #include <iostream> #include <ctime> #include <conio.h> #include <windows.h> //停顿:Sleep(); #include <cstdlib> //清屏:system("cls"); #i 阅读全文
posted @ 2026-01-02 17:13 Green_wang 阅读(1) 评论(0) 推荐(0)

摘要: //空格控制 #include <cstdio> #include <ctime> #include <conio.h> #include <windows.h> #include <cstdlib> #include <cstring> using namespace std; // #defin 阅读全文
posted @ 2026-01-02 17:12 Green_wang 阅读(1) 评论(0) 推荐(0)

摘要: = #include<bits/stdc++.h> #include<Windows.h> #define PR_Box printf("■") #define PR_Gold printf("★") #define PR_Ag printf("☆") #define PR_FBird printf 阅读全文
posted @ 2026-01-02 17:12 Green_wang 阅读(3) 评论(0) 推荐(0)

摘要: = //BUG:清除一行后上方的方块会重力下落 #include <iostream> #include <windows.h> #include <vector> #include <mmsystem.h> #pragma comment(lib, "winmm.lib") using names 阅读全文
posted @ 2026-01-02 17:12 Green_wang 阅读(3) 评论(0) 推荐(0)

摘要: `` //上下左右键控制 #include<bits/stdc++.h> #include<windows.h> int a[24][17],i,j,tim=800,ti=800,shape=0,b,bn,ta[4][4],turn[4][4],nex[4][4],nextshape,add=0,s 阅读全文
posted @ 2026-01-02 17:11 Green_wang 阅读(8) 评论(0) 推荐(0)

摘要: //J,L左移右移;D变换方向 #include <cstdio> #include <cstdlib> #include <cstring> #include <windows.h> #include <ctime> #include <conio.h> #include <iostream> u 阅读全文
posted @ 2026-01-02 17:10 Green_wang 阅读(4) 评论(0) 推荐(0)

2023年12月23日 #

摘要: upper_bound & lower_bound 是STL库中的函数 upper_bound 返回第一个大于查找值的数 lower_bound 返回第一个大于等于查找值的数 lower_bound( begin,end,num):从数组的begin位置到end - 1位置二分查找第一个大于或等于n 阅读全文
posted @ 2023-12-23 00:11 Green_wang 阅读(42) 评论(0) 推荐(0)