博客
关于我
NOIP2011T1 数字反转
阅读量:793 次
发布时间:2023-02-16

本文共 377 字,大约阅读时间需要 1 分钟。

 

 

var    n,m,c:longint;begin    assign(input,'reverse.in'); reset(input);    assign(output,'reverse.out'); rewrite(output);    readln(n);    if n<0 then begin n:=-n; write('-'); end;    m:=0;    while n>0 do    begin        m:=m*10+n mod 10;        n:=n div 10;    end;    writeln(m);    close(input); close(output);end.

 

转载于:https://www.cnblogs.com/qilinart/articles/3386020.html

你可能感兴趣的文章
MySQL 数据库设计总结
查看>>
Mysql 数据库重置ID排序
查看>>
Mysql 数据类型一日期
查看>>
MySQL 数据类型和属性
查看>>
mysql 敲错命令 想取消怎么办?
查看>>
Mysql 整形列的字节与存储范围
查看>>
mysql 断电数据损坏,无法启动
查看>>
MySQL 日期时间类型的选择
查看>>
Mysql 时间操作(当天,昨天,7天,30天,半年,全年,季度)
查看>>
MySQL 是如何加锁的?
查看>>
MySQL 是怎样运行的 - InnoDB数据页结构
查看>>
mysql 更新子表_mysql 在update中实现子查询的方式
查看>>
MySQL 有什么优点?
查看>>
mysql 权限整理记录
查看>>
mysql 权限登录问题:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
查看>>
MYSQL 查看最大连接数和修改最大连接数
查看>>
MySQL 查看有哪些表
查看>>
mysql 查看锁_阿里/美团/字节面试官必问的Mysql锁机制,你真的明白吗
查看>>
MySql 查询以逗号分隔的字符串的方法(正则)
查看>>
MySQL 查询优化:提速查询效率的13大秘籍(避免使用SELECT 、分页查询的优化、合理使用连接、子查询的优化)(上)
查看>>