234502026-01-23 09:29:26SzeredaiNatanaelKedves számokcpp17Time limit exceeded 0/50600ms588 KiB
#include <iostream>

using namespace std;

int main()
{
	int n, sum1 = 0, sum2, db = 1; cin >> n;

	while (sum1 < n) {
		sum2 = sum1;
		sum1 *= 10;
		if (sum1 != sum2) {
			++db;
		}
		sum1 += 3;
		++db;
	}

	cout << db;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted1ms316 KiB
2Time limit exceeded582ms316 KiB
subtask20/4
3Accepted1ms500 KiB
4Wrong answer1ms316 KiB
5Time limit exceeded574ms316 KiB
6Time limit exceeded575ms548 KiB
7Time limit exceeded600ms316 KiB
subtask30/12
8Accepted1ms500 KiB
9Wrong answer1ms316 KiB
10Time limit exceeded574ms316 KiB
11Time limit exceeded575ms548 KiB
12Time limit exceeded600ms316 KiB
13Wrong answer1ms316 KiB
14Time limit exceeded580ms316 KiB
15Time limit exceeded580ms500 KiB
16Time limit exceeded580ms316 KiB
17Time limit exceeded600ms316 KiB
18Time limit exceeded582ms316 KiB
19Time limit exceeded582ms512 KiB
20Time limit exceeded583ms508 KiB
21Time limit exceeded600ms316 KiB
subtask40/10
22Wrong answer1ms316 KiB
23Accepted1ms508 KiB
24Wrong answer1ms316 KiB
25Wrong answer1ms316 KiB
26Wrong answer1ms316 KiB
27Wrong answer1ms316 KiB
28Accepted1ms316 KiB
29Accepted1ms316 KiB
30Wrong answer1ms316 KiB
31Accepted1ms316 KiB
32Accepted1ms316 KiB
33Wrong answer1ms316 KiB
34Wrong answer1ms316 KiB
subtask50/10
35Wrong answer1ms316 KiB
36Accepted1ms508 KiB
37Wrong answer1ms316 KiB
38Wrong answer1ms316 KiB
39Wrong answer1ms316 KiB
40Wrong answer1ms316 KiB
41Accepted1ms316 KiB
42Accepted1ms316 KiB
43Wrong answer1ms316 KiB
44Accepted1ms316 KiB
45Accepted1ms316 KiB
46Wrong answer1ms316 KiB
47Wrong answer1ms316 KiB
48Wrong answer1ms316 KiB
49Wrong answer1ms508 KiB
50Wrong answer1ms316 KiB
51Wrong answer1ms316 KiB
52Wrong answer1ms316 KiB
53Wrong answer1ms324 KiB
54Wrong answer1ms316 KiB
55Wrong answer1ms316 KiB
56Wrong answer1ms316 KiB
57Wrong answer1ms500 KiB
58Wrong answer1ms316 KiB
59Wrong answer1ms316 KiB
60Wrong answer1ms316 KiB
61Wrong answer1ms316 KiB
62Wrong answer1ms360 KiB
63Wrong answer1ms324 KiB
64Wrong answer1ms316 KiB
65Wrong answer1ms324 KiB
subtask60/14
66Accepted1ms316 KiB
67Time limit exceeded598ms316 KiB
68Accepted1ms500 KiB
69Wrong answer1ms316 KiB
70Time limit exceeded574ms316 KiB
71Time limit exceeded575ms548 KiB
72Time limit exceeded600ms316 KiB
73Wrong answer1ms316 KiB
74Time limit exceeded580ms316 KiB
75Time limit exceeded580ms500 KiB
76Time limit exceeded580ms316 KiB
77Time limit exceeded600ms316 KiB
78Time limit exceeded582ms316 KiB
79Time limit exceeded582ms512 KiB
80Time limit exceeded583ms508 KiB
81Time limit exceeded600ms316 KiB
82Wrong answer1ms316 KiB
83Accepted1ms508 KiB
84Wrong answer1ms316 KiB
85Wrong answer1ms316 KiB
86Wrong answer1ms316 KiB
87Wrong answer1ms316 KiB
88Accepted1ms316 KiB
89Accepted1ms316 KiB
90Wrong answer1ms316 KiB
91Accepted1ms316 KiB
92Accepted1ms316 KiB
93Wrong answer1ms316 KiB
94Wrong answer1ms316 KiB
95Wrong answer1ms316 KiB
96Wrong answer1ms508 KiB
97Wrong answer1ms316 KiB
98Wrong answer1ms316 KiB
99Wrong answer1ms316 KiB
100Wrong answer1ms324 KiB
101Wrong answer1ms316 KiB
102Wrong answer1ms316 KiB
103Wrong answer1ms316 KiB
104Wrong answer1ms500 KiB
105Wrong answer1ms316 KiB
106Wrong answer1ms316 KiB
107Wrong answer1ms316 KiB
108Wrong answer1ms316 KiB
109Wrong answer1ms360 KiB
110Wrong answer1ms324 KiB
111Wrong answer1ms316 KiB
112Wrong answer1ms324 KiB
113Time limit exceeded600ms316 KiB
114Time limit exceeded600ms316 KiB
115Time limit exceeded600ms316 KiB
116Time limit exceeded580ms316 KiB
117Time limit exceeded582ms316 KiB
118Time limit exceeded582ms588 KiB
119Time limit exceeded600ms316 KiB
120Time limit exceeded575ms316 KiB
121Time limit exceeded577ms512 KiB
122Time limit exceeded575ms512 KiB
123Time limit exceeded598ms500 KiB
124Time limit exceeded580ms508 KiB
125Time limit exceeded580ms316 KiB
126Time limit exceeded582ms316 KiB
127Time limit exceeded600ms332 KiB
128Time limit exceeded584ms316 KiB
129Time limit exceeded583ms568 KiB
130Time limit exceeded586ms316 KiB
131Time limit exceeded598ms316 KiB