摘要: #include<iostream> using namespace std; //使用string字符串解决。 int main(){ string s1,s2; int n; cin>>n; for(int i=0;i<n;i++){ cin>>s1>>s2; if(s1==s2){ cout< 阅读全文
posted @ 2023-08-01 19:18 爱吃泡面的皮卡 阅读(21) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int main(){ int a[105]={},n,b; cin>>n; for(int i=1;i<=n;i++){ cin>>b; a[b+50]++; } for(int i=-50;i<=50;i 阅读全文
posted @ 2023-08-01 19:17 爱吃泡面的皮卡 阅读(18) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cmath> #include <bits/stdc++.h> using namespace std; double a(double n,double x){ if(n==0){ return 1;//结尾条件 }else{ return 阅读全文
posted @ 2023-08-01 19:17 爱吃泡面的皮卡 阅读(41) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cmath> #include <bits/stdc++.h> using namespace std; double a(double n,double x){ if(n==0){ return x; }else{ return sqrt(n 阅读全文
posted @ 2023-08-01 19:15 爱吃泡面的皮卡 阅读(74) 评论(0) 推荐(0)
摘要: #include <iostream> #include <cmath> using namespace std; int main(int argc, char** argv) { system("pause"); double x,y; int c[1][10]; int w; int k; d 阅读全文
posted @ 2023-08-01 09:29 爱吃泡面的皮卡 阅读(27) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int a(int n){ if(n<=2){ return n; }else{ return a(n-1)+a(n-2); } } int main(int argc, char** argv) { system(" 阅读全文
posted @ 2023-07-31 19:29 爱吃泡面的皮卡 阅读(15) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int i(int w,int k){ if(w%k==0){ return k; }else{ return i(k,w%k); } } int main(int argc, char** argv) { int w 阅读全文
posted @ 2023-07-31 19:13 爱吃泡面的皮卡 阅读(12) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(int argc, char** argv) { int a[10][10]; for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ a[i][j]=i*j; c 阅读全文
posted @ 2023-07-31 08:55 爱吃泡面的皮卡 阅读(19) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int a(int n){ if(n==4){ cout<<"4,5-->9,10"<<endl; cout<<"8,9-->4,5"<<endl; cout<<"2,3->8,9"<<endl; cout<<"7,8 阅读全文
posted @ 2023-07-28 19:58 爱吃泡面的皮卡 阅读(16) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int a(int n){ if(n<=2){ return 1; } return a(n-1)+a(n-2);//a(n-1)*n } int main(int argc, char** argv) { syste 阅读全文
posted @ 2023-07-28 19:44 爱吃泡面的皮卡 阅读(22) 评论(0) 推荐(0)