# 題目 * 設計一個函數f(n),該函數可以傳回整數n的數字反序排列所組成的整數。 # 注意事項 >數字範圍:整數 1 – 9999 (不含10的倍數) # Code ```C++=1 #include <iostream> using ss=std::string; int main() { ss s; std::cin>>s; std::cout<<ss(s.rbegin(),s.rend())<<"\n"; } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up