E. 【深基4.习3】[NOIP2011 普及组] 数字反转

    Type: RemoteJudge 1000ms 256MiB

【深基4.习3】[NOIP2011 普及组] 数字反转

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

给定一个整数 NN,请将该数各个位上数字反转得到一个新数。新数也应满足整数的常见形式,即除非给定的原数为零,否则反转后得到的新数的最高位数字不应为零(参见样例 2)。

输入格式

一个整数 NN

输出格式

一个整数,表示反转后的新数。

123
321
-380
-83

提示

【数据范围】

1,000,000,000N1,000,000,000-1,000,000,000\leq N\leq 1,000,000,000

noip2011 普及组第一题

基础1班暑假作业题7.14

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
7
Start at
2025-7-14 10:15
End at
2025-9-14 22:15
Duration
1500 hour(s)
Host
Partic.
21