竞赛
考级
回来看看
直接上代码:
嘻嘻(陆昭文)
空降坐标:CP002962 请看代码
LW
天狗
此代码适合int类型上限以下任何数字的反转
毛奕程
只等用int吗?
秋山༒莱昂斯︻┳┻═┅┅┅互关
此外,此方法也可在任意分解字符串的题 我和“进步的蜗牛”的小伙伴都在ACGO等你,快用这个专属链接加入我们吧! 点我加入
i amthebest™搬至洛谷
#include<iostream> using namespace std; int main(){ int a,b,c,d; cin>>a; b=a%10; c=a/10%10; d=a/100; cout<<b<<c<<d; return 0; }[链接描述](wgdvefxvxdtrewe5y4et.g5t,rgpijreoe-gtc-d04w4'jhpikfmd sknrsu04r.com)
钮祜禄氏·南荣伊儿
#include <bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; cout<<a%10<<a/10%10<<a/100; return 0; }
醉词意
广为人知,python有切片 但还是广为人知,python切片自带翻转功能,就是[前数据:后数据+1:-1] 因为input函数自动默认字符串,所以直接打印输入字符串的[::-1]就行了 code:
暴力出奇迹,结果TLE
#include <iostream> using namespace std; int main(){ unsigned N; cin>>N; cout<<N%10<<N/10%10<<N/100; }
七(6)朱瀚辰
#include <iostream> using namespace std; int main(){ int n; cin>>n; while(n>0){ cout<<n%10; n=n/10; } return 0; }
LeThe
#include<iostream> using namespace std; int main(){ int a; cin>>a; cout<< a%10<<a/10%10<<a/100<<endl; return 0; }
~Lyney~
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; cout<<a%10<<a/10%10<<a/100<<endl; return 0; }
王晗睿
复仇者_无奈
#include<bits/stdc++.h> using namespace std; int main(){ string n; cin>>n; reverse(n.begin(),n.end()); cout<<n; return 0; }
༺ཌༀ我来请你吃席啦ༀད༻
「欢愉」花火
[链接描述]( )
战神老六
code:
鸡你太美
共58条