-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquickestimate.cpp
56 lines (40 loc) · 1.33 KB
/
quickestimate.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <cmath>
#include <ctime>
#include <numeric>
#include <set>
#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
#define FOR0(i, n) for(i=0;i<n;i++)
#define FOR(i, j, n) for(i=j;i<n;i++)
#define FORD(i, j, k) for(i=j;i>=k;i--)
#define faster ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
#define pb push_back
#define ff first
#define ss second
typedef long long ll;
typedef long double ld;
inline long long MAX2(long long a, long long int b) { return (a) > (b) ? (a) : (b); }
inline long long MAX3(long long a, long long b, long long c) {
return (a) > (b) ? ((a) > (c) ? (a) : (c)) : ((b) > (c) ? (b) : (c));
}
inline long long MIN2(long long a, long long b) { return (a) < (b) ? (a) : (b); }
inline long long MIN3(long long a, long long b, long long c) {
return (a) < (b) ? ((a) < (c) ? (a) : (c)) : ((b) < (c) ? (b) : (c));
}
using namespace std;
int main() {
faster;
ll tests;
cin >> tests;
while (tests--) {
string value;
cin >> value;
cout << value.size() << endl;
}
cerr << endl << "Time elapsed : " << clock() * 1000.0 / CLOCKS_PER_SEC << " ms" << '\n';
}