-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path6718.cpp
More file actions
49 lines (47 loc) · 714 Bytes
/
6718.cpp
File metadata and controls
49 lines (47 loc) · 714 Bytes
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
// 6718. 희성이의 원근법
// 2019.06.29
#include<iostream>
using namespace std;
int main()
{
int test_case;
int T;
cin >> T;
for (test_case = 1; test_case <= T; ++test_case)
{
int n;
// cin,cout사용시 시간초과
scanf("%d", &n);
if (n >= 1000000)
{
printf("#%d 5\n", test_case);
continue;
}
else if (n >= 100000)
{
printf("#%d 4\n", test_case);
continue;
}
else if (n >= 10000)
{
printf("#%d 3\n", test_case);
continue;
}
else if (n >= 1000)
{
printf("#%d 2\n", test_case);
continue;
}
else if (n >= 100)
{
printf("#%d 1\n", test_case);
continue;
}
else
{
printf("#%d 0\n", test_case);
continue;
}
}
return 0;
}