摘要: #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)