a038. 數字翻轉
Tags : while 迴圈
Accepted rate : 21687人/23848人 ( 91% ) [非即時]
評分方式:
Tolerant

最近更新 : 2020-05-25 14:09

Content

輸入任意數字,並將其數字全部倒轉

 

Input

輸入一行包含一個整數,且不超過 $2^{31}$

Output

輸出翻轉過後的數字

Sample Input #1
12345
Sample Output #1
54321
Sample Input #2
5050
Sample Output #2
505
測資資訊:
記憶體限制: 512 MB
公開 測資點#0 (33%): 1.0s , <1K
公開 測資點#1 (33%): 1.0s , <1K
公開 測資點#2 (34%): 1.0s , <1K
Hint :

* 前面有 0 的話應消除

Tags:
while 迴圈
出處:
[管理者: jiangsir(jiangsir) ]


ID User Problem Subject Hit Post Date
35205 CodingPrep(演算法/資料結構教學) a038
C++ 答案
76 2023-05-16 15:59
34076 dreamer.aeu6...(Noah) a038
334 2023-02-27 20:26
33740 s1091118@stu...(20 顏俊宸) a038
TLE
211 2023-01-29 14:00
33434 t010079@twnt...(jchu0952) a038
c++僅用iostream
632 2023-01-06 08:56
33158 a110608@ctes...(鍾均) a038 964 2022-12-06 22:07