2081 整数的个数
Time Limit : 2000/1000 MS(Java/Others) | Memory Limit : 131072/65536 KB(Java/Others)
Submits : 42 | Solved : 30
Description
给定一个字符串,找出其中由连续数字字符组成的整数,并统计其个数。
Input
输入一个字符串,由空格、英文字母、数字组成,每个测试数据一行,长度小于1000。
Output
第一行输出整数的个数。换行后输出这些整数,每个整数末尾都有空格。
Sample Input
5436grh 74h74 57 74rg 63664greg743
Sample Output
7 5436 74 74 57 74 63664 743
HINT
Source
NBU OJ