Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
统计字符串中的数字字符整数
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 75, Accepted users: 66
Problem 10072 : No special judgement
Problem description
  输入一个字符串,内有数字字符和非数字字符,将其中连续的数字字符作为一个整数,输出这些数。例如,字符串“a123x45?6h7890” 中有整数:123,45,6,7890。

Input
  输入任意一个字符串,回车结束。有多组数据,每组数据为一字符串,占一行,输入最后一行为任一个字符,表示输入结束并且不需要处理。

Output
  输出字符串中连续的数字字符整数,每个整数占10字符宽度。

Sample Input
a123x45?6h7890
1234er324th89*
abc6003df8008#
z
Sample Output
       123        45         6      7890
      1234       324        89
      6003      8008
Problem Source
  Teacher yxl 

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2133 today,16258860 total, since 2010-05-07