Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
25 Iulie 2023, 17:18 |
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:279:19: warning: comparison of constant ‘1000000’ with boolean expression is always true [-Wbool-compare]
279 | assert(0 <= sum <= MAXS);
| ~~~~~~~~~^~~~~~~
main.cpp:279:12: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
279 | assert(0 <= sum <= 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,001 |
176KB |
|
1,
5
|
2
|
correct |
0,001 |
176KB |
|
1,
5
|
3
|
correct |
0,001 |
176KB |
|
1,
5
|
4
|
correct |
0,004 |
5.8MB |
|
1,
5
|
5
|
correct |
0,001 |
176KB |
|
1,
5
|
6
|
correct |
0,001 |
176KB |
|
2,
5
|
7
|
correct |
0,014 |
6.12MB |
|
2,
5
|
8
|
correct |
0,013 |
6.06MB |
|
2,
5
|
9
|
correct |
0,015 |
6.11MB |
|
2,
5
|
10
|
correct |
0,012 |
6.11MB |
|
3,
5
|
11
|
correct |
1,007 |
35.64MB |
|
3,
5
|
12
|
correct |
0,974 |
35.59MB |
|
3,
5
|
13
|
correct |
0,112 |
30.64MB |
|
4,
5
|
14
|
correct |
0,311 |
32.79MB |
|
4,
5
|
15
|
correct |
0,329 |
31.39MB |
|
5
|
16
|
TimeLimitExceeded |
2,505 |
37.52MB |
|
5
|
17
|
correct |
1,983 |
36.81MB |
|
5
|
18
|
correct |
2,102 |
36.65MB |
|
5
|
19
|
correct |
2,303 |
36.85MB |
|
5
|
20
|
correct |
2,299 |
35.03MB |
|
5
|
21
|
correct |
2,185 |
34.81MB |
|
5
|
22
|
correct |
1,795 |
32.85MB |
Subtask |
Scor |
Scor maxim |
|---|---|---|
1 |
7,0 |
7
|
2 |
9,0 |
9
|
3 |
20,0 |
20
|
4 |
8,0 |
8
|
5 |
0,0 |
56
|