Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
25 Iulie 2023, 17:16 |
c++32 |
44.0 |
In file included from /usr/include/c++/11/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/11/32/bits/stdc++.h:33,
from main.cpp:1:
main.cpp: In function ‘int main()’:
main.cpp:272:21: warning: comparison of constant ‘1000000’ with boolean expression is always true [-Wbool-compare]
272 | assert(0 <= sum <= (int64_t)MAXS);
| ~~~~~~~~~^~~~~~~~~~~~~~~~
main.cpp:272:14: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
272 | assert(0 <= sum <= (int64_t)MAXS);
| ~~^~~~~~
main.cpp: In constructor ‘InputReader::InputReader()’:
main.cpp:16:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
16 | scanf("%d%d", &N, &Q);
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp:19:12: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
19 | scanf("%d", &P[i]);
| ~~~~~^~~~~~~~~~~~~
main.cpp: In member function ‘int InputReader::get_query()’:
main.cpp:25:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
25 | scanf("%d", &nod);
| ~~~~~^~~~~~~~~~~~
Subtask |
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
|---|---|---|---|---|
|
1,
5
|
1
|
correct |
0,0 |
176KB |
|
1,
5
|
2
|
correct |
0,001 |
176KB |
|
1,
5
|
3
|
correct |
0,0 |
176KB |
|
1,
5
|
4
|
correct |
0,006 |
5.7MB |
|
1,
5
|
5
|
correct |
0,006 |
5.8MB |
|
1,
5
|
6
|
correct |
0,001 |
176KB |
|
2,
5
|
7
|
correct |
0,012 |
6.11MB |
|
2,
5
|
8
|
correct |
0,015 |
6.09MB |
|
2,
5
|
9
|
correct |
0,013 |
6.1MB |
|
2,
5
|
10
|
correct |
0,014 |
6.11MB |
|
3,
5
|
11
|
correct |
0,984 |
35.59MB |
|
3,
5
|
12
|
correct |
0,948 |
35.68MB |
|
3,
5
|
13
|
correct |
0,114 |
30.62MB |
|
4,
5
|
14
|
correct |
0,299 |
31.98MB |
|
4,
5
|
15
|
correct |
0,32 |
30.34MB |
|
5
|
16
|
TimeLimitExceeded |
1,802 |
36.7MB |
|
5
|
17
|
TimeLimitExceeded |
1,802 |
36.47MB |
|
5
|
18
|
TimeLimitExceeded |
1,805 |
36.07MB |
|
5
|
19
|
TimeLimitExceeded |
1,8 |
36.1MB |
|
5
|
20
|
TimeLimitExceeded |
1,802 |
34.15MB |
|
5
|
21
|
TimeLimitExceeded |
1,805 |
33.89MB |
|
5
|
22
|
correct |
1,72 |
31.99MB |
Subtask |
Scor |
Scor maxim |
|---|---|---|
1 |
7,0 |
7
|
2 |
9,0 |
9
|
3 |
20,0 |
20
|
4 |
8,0 |
8
|
5 |
0,0 |
56
|