上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: #include <graphics.h> #include <math.h> #include <conio.h> #include <time.h> int main() { initgraph(640, 480); int n=9; srand(time(0)); double start=0 阅读全文
posted @ 2025-05-03 09:22 陈若麟 阅读(7) 评论(0) 推荐(0)
摘要: #include<iostream> #include <vector> //在3x3迷宫中寻找从S(0,0)到E(2,2)的所有路径 using namespace std; int m=999; vector<pair<int,int>> path;//存储路径坐标 vector<pair<in 阅读全文
posted @ 2025-04-26 15:50 陈若麟 阅读(11) 评论(0) 推荐(0)
摘要: #include <graphics.h> #include <math.h> #include <conio.h> #include <time.h> int main() { initgraph(640, 480); int n=9; srand(time(0)); double start=0 阅读全文
posted @ 2025-04-26 10:02 陈若麟 阅读(6) 评论(0) 推荐(0)
摘要: #include <graphics.h> #include <ctime> using namespace std; int main() { initgraph(640, 480); ExMessage m; int x=-1,y=-1; while(true){ m=getmessage(); 阅读全文
posted @ 2025-04-25 19:42 陈若麟 阅读(4) 评论(0) 推荐(0)
摘要: #include <graphics.h> #include <bits/stdc++.h> #include <conio.h> int main(){ srand(time(0)); initgraph(1024,680); for(int i=0;i<500;i++){ putpixel(ra 阅读全文
posted @ 2025-04-19 15:25 陈若麟 阅读(6) 评论(0) 推荐(0)
摘要: #include <graphics.h> // 引用图形库头文件 #include <conio.h> int f(int x,int y){ int a=350-(x/2),b=240-(y/2),c=350+(x/2),d=240+(y/2); for(int i=a;i<=c;i++){ f 阅读全文
posted @ 2025-04-19 15:16 陈若麟 阅读(6) 评论(0) 推荐(0)
摘要: #include <graphics.h> // 引用图形库头文件 #include <conio.h> int f(int x,int y){ COLORREF n[7]={RED,RGB(255, 165, 0),YELLOW,GREEN,CYAN,BLUE,RGB(128, 0, 128)}; 阅读全文
posted @ 2025-04-19 15:03 陈若麟 阅读(3) 评论(0) 推荐(0)
摘要: #include<graphics.h> #include<conio.h> #include<bits/stdc++.h> using namespace std; void sans(double x,double y,double w){ line(x,y,x+w,y); line(x,y,x 阅读全文
posted @ 2025-04-12 09:57 陈若麟 阅读(7) 评论(0) 推荐(0)
摘要: #include<iostream> #include<windows.h> using namespace std; int main(){ int n,k; cin>>n>>k; int a[n][2]; for(int i=0;i<n;i++){ cin>>a[i][0]>>a[i][1]; 阅读全文
posted @ 2024-12-21 09:37 陈若麟 阅读(13) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; int main(){ int n,sum=0,m=0; cin>>n; for(int i=1;i;i*=2){ sum++; m+=i; if(m>=n){ break; } } cout<<sum; return 阅读全文
posted @ 2024-09-14 20:57 陈若麟 阅读(14) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 15 下一页