摘要: #include <bits/stdc++.h> using namespace std; int fc(int s){ if(s<=2){ return 1; }else{ return fc(s-1)+fc(s-2); } } int main(){ int n; cin>>n; cout<<f 阅读全文
posted @ 2025-03-23 09:30 昵称就是最好的昵称 阅读(3) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int fc(int s){ if(s==1){ return 1; }else{ return s*fc(s-1); } } int main(){ int n; cin>>n; cout<<fc(n); 阅读全文
posted @ 2025-03-23 09:28 昵称就是最好的昵称 阅读(1) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; int fc(int s){ if(s==1){ return 1; }else{ cout<<s<<" "; return fc(s-1); } } int main(){ int n; cin>>n; c 阅读全文
posted @ 2025-03-23 09:27 昵称就是最好的昵称 阅读(1) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; class Rectgangle{ private: int length; int width; public: void js(int l,int w){ length=l; width=w; } void sj( 阅读全文
posted @ 2025-02-23 09:58 昵称就是最好的昵称 阅读(3) 评论(0) 推荐(0)
摘要: stu s1={1,”留有一“,111};cout<<s1.id<<endl;cout<<s1.name<<endl; for(int i=0;i<n;i++){ for(int j=n-1;j>0;j--){ if(a[i].cj<a[j].cj){ swap(a[i].age,a[j].age) 阅读全文
posted @ 2025-02-06 09:39 昵称就是最好的昵称 阅读(7) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; struct lile{ int age; string name; int cj; }; int main() { int n; cin>>n; lile a[n];lile a1; for(int i=0 阅读全文
posted @ 2025-02-06 09:35 昵称就是最好的昵称 阅读(6) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int readfile(string name){ FILE *file=fopen(name.c_str(),"r"); if(file==NULL){ perror("文件打开失败"); return 1; } 阅读全文
posted @ 2024-12-29 09:49 昵称就是最好的昵称 阅读(5) 评论(0) 推荐(0)
摘要: #include <iostream> #include <fstream> using namespace std; int main(){ // char data[100]; // ifstream a; // a.open("j.txt"); // a>>data; // cout<<dat 阅读全文
posted @ 2024-12-29 09:22 昵称就是最好的昵称 阅读(3) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; void dengluliuzi(){ printf("%s","恭喜你你出生你了\n"); printf("%s","你好不容易出生了。。你要??拯救之前失去的一切吗??\n"); printf("%s","\n") 阅读全文
posted @ 2024-12-27 19:24 昵称就是最好的昵称 阅读(5) 评论(0) 推荐(0)
摘要: #include <fstream> #include <cstdio> #include <iostream> using namespace std; struct wo{ string name; string sex; int age; int cm; int kiko; }; int ma 阅读全文
posted @ 2024-12-20 19:12 昵称就是最好的昵称 阅读(5) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示