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: 255, Accepted users: 246
Problem 10487 : No special judgement
Problem description
  写一个函数,求一个字符串的长度,不能使用strlen函数。

Input
  第一行是一个整数T,表示有T组数据。每组数据一行,为一字符串(长度小于等于255个字符)。

Output
  对于每一组数据,先输出“Case #:”(#为序号,从1起),换行;然后输出字符串长度,换行。

Sample Input
2
By My Side
A Little Too Not Over You
Sample Output
Case 1:
10
Case 2:
25
Submit   Clarifications   Judge Status  Problems  Ranklist 

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