2016年11月10日 星期四

TIOJ 1665 - digit

http://tioj.infor.org/problems/1665

字串秒殺題



 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#include<iostream>
using namespace std;
int main(){
    cin.tie(0);
    ios_base::sync_with_stdio(0);
    string s;
    while(cin>>s){
        cout<<s.length()<<'\n';
    }
}

沒有留言:

張貼留言