博客
关于我
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

你可能感兴趣的文章
nghttp3使用指南
查看>>
【Flink】Flink 2023 Flink 自动化运维的大规模落地实践
查看>>
Nginx
查看>>
nginx + etcd 动态负载均衡实践(一)—— 组件介绍
查看>>
nginx + etcd 动态负载均衡实践(三)—— 基于nginx-upsync-module实现
查看>>