竞赛
考级
#include <bits/stdc++.h> using namespace std; int main(){ int n,a,b,c,d,e; cin>>n; c=n%10; d=n-c; b=d/10%10; e=d-10*b; a=d/100; cout<<c<<" "<<b<<" "<<a; return 0; }
黑白世界
非常的简单啊!!!设四个变量就随便解!! #include<bits/stdc++.h> using namespace std; int main(){ int s,a,b,c; cin >> s; a = s%10; b = s/10%10; c = s/10/10%10; cout << a << " " << b << " " << c; return 0; }
吕梓烨
#include<iostream> using namespace std; string a; int main(){ cin>>a; cout<<a[2]<<' '<<a[1]<<' '<<a[0]; return 0; }
🎆🎇✨孙宇祺━╋═════➢
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; cout<<n%10<<" "<<n/10%10<<" "<<n/100; return 0; }
CXL c++
#include<iostream> using namespace std; int main(){ int a; cin>>a; int ge = a%10,shi = a/10%10,bai = a/100; cout<<ge<<" "<<shi<<" "<<bai; return 0; }
啊啊啊玩MC的ZHN钟昊能
秒啦!!!
185****5303
#include <bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; cout <<a%10<<" "<<a%100/10<<" "<<a/100; }
666
so what
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; while(n>0){ int m=n%10; n/=10; cout <<m<<" "; } return 0; }
别看了啥都没有
最爱string偷懒了 #include <bits/stdc++.h> using namespace std; int main() { string s; cin>>s; for(int i=s.size()-1;i>0;i--){ cout<<s[i]<<" "; }cout<<s[0]; return 0; }
葬仪_亡蝶舞
阿基米哲V(^-^)V
zsy
6.
#include<bits/stdc++.h> using namespace std; int main(){链接描述 int n,a,b,c; cin>>n; a=n%10; b=(n/10)%10; c=n/100; cout<<a<<" "<<b<<" "<<c<<endl; return 0; }
139****1308
#include <bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; while(a>0){ int b=a%10; a/=10; cout<<b<<" "; } return 0; }
薛博文
#include <iostream> using namespace std; int main(){ int a,b,c,d; cin>>a; b=a%10; cout<<b<<" "; c=a/10%10; cout<<c<<" "; d=a/100; cout<<d<<" "; }
134****6246
共36条