摘要: #include <iostream> using namespace std; int main() { int n,m; cin>>n>>m; int a[n+1]; int b[n],c[n],d[n]; for(int i=1;i<n+1;i++){ cin>>a[i]; } for(int 阅读全文
posted @ 2023-08-11 17:17 陈若麟 阅读(16) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(){ long long n; cin>>n; long long f[n+1]; f[1]=1; f[2]=1; for(int i=3;i<=n;i++){ f[i]=f[i-1]+f[i-2]; 阅读全文
posted @ 2023-08-11 17:15 陈若麟 阅读(21) 评论(0) 推荐(0)
摘要: #include <iostream> #include <iomanip> #include <Windows.h> #include <cstdlib> #include <ctime> using namespace std; int main(){ int h,l,a,b,c[3],d[3] 阅读全文
posted @ 2023-08-11 17:13 陈若麟 阅读(31) 评论(0) 推荐(0)
摘要: #include <iostream> #include <iomanip> using namespace std; int row=16; int col=16; int all[17][17]; bool black=true; bool whilt; int x,y; int a=1; in 阅读全文
posted @ 2023-08-11 17:11 陈若麟 阅读(34) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; bool a(string n){ if(n[0]==n[n.size()-1]){ if(n.size()<=3){ return 1; }else{ n=n.substr(1,n.size()-2); a(n); 阅读全文
posted @ 2023-08-11 17:06 陈若麟 阅读(25) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(int argc, char** argv) { int n; cin>>n; char a[n]; int b; for(int i=0;i<n;i++){ cin>>a[i]; if(a[i]<= 阅读全文
posted @ 2023-08-11 17:04 陈若麟 阅读(17) 评论(0) 推荐(0)