Pa求助,为什么我只有70分

P1307 [NOIP2011 普及组] 数字反转

贺李果子 @ 2015-10-24 10:05:20

var s:string;
    i,j,k:integer;
begin
  readln(s);
  k:=length(s);
  if (s[1]='-') then write('-');
  for i:=k downto 1 do begin
    if (s[i]>='1') and (s[i]<='9') then write(s[i]);
  end;
end.

by k3v1n070828 @ 2020-06-26 22:27:46

考古


by Trollz @ 2020-12-25 13:11:41

kaogu


by 飞啾6373 @ 2021-10-06 10:59:24

考考古学家的古


by 扫雷王子 @ 2022-05-16 19:28:56

2022第一铲


上一页 |