摘要: #include<bits/stdc++.h> using namespace std; int s=0; bool b=0; void f(int n,int x){ if(x==0){ return; } for(int i=1;i<x+1;i++){ cout<<i<<" "; } cout< 阅读全文
posted @ 2025-07-24 09:29 陈若麟 阅读(9) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int s=0; int f(int n){ if(n<10){ return n; } return n%10+f(n/10); } int main(){ int n; cin>>n; cout<<f(n) 阅读全文
posted @ 2025-07-24 09:15 陈若麟 阅读(7) 评论(0) 推荐(0)
摘要: #include <graphics.h> #include <conio.h> #include<bits/stdc++.h> bool xx[700][480]={0}; int yy[700][480]={0}; int e=0; int x=0,y=0; bool win(int x,int 阅读全文
posted @ 2025-07-12 10:03 陈若麟 阅读(12) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ srand(time(0)); int a=12,c=0; char b; string n=""; while(!c){ b=rand()%93+33; c=isupper(b); } 阅读全文
posted @ 2025-06-06 20:35 陈若麟 阅读(10) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ string a; string b[1000],c[1000]; getline(cin,a); int l=0; while(a.find(' ')>=0&&a.find(' ')< 阅读全文
posted @ 2025-05-31 16:00 陈若麟 阅读(10) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ string a; char b[100]; getline(cin,a); int c[300]={0}; for(int i=0;i<a.size();i++){ if(a[i]>= 阅读全文
posted @ 2025-05-31 15:28 陈若麟 阅读(9) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; bool f(string a){ int c=a.find('@'),e=a.find(' '); if(c<1||e!=-1){ return 0; }else{ int d=a.find('@',c+1); if( 阅读全文
posted @ 2025-05-31 15:10 陈若麟 阅读(7) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ vector<vector<int>> a(5); double b; int in; for(int i=0;i<8;i++){ cin>>b; in=(b-1)/20; a[in]. 阅读全文
posted @ 2025-05-24 09:51 陈若麟 阅读(13) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #include <graphics.h> #include <conio.h> #include <windows.h> using namespace std; int main() { char s[2][1000]={"1.png","2.p 阅读全文
posted @ 2025-05-23 20:35 陈若麟 阅读(6) 评论(0) 推荐(0)
摘要: #include <graphics.h> #include <math.h> #include <conio.h> #include <time.h> struct f{ int x; int y; char ch; int speed; }; int main() { initgraph(102 阅读全文
posted @ 2025-05-03 15:42 陈若麟 阅读(7) 评论(0) 推荐(0)