Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
10 Aprilie 2025, 20:38 |
c++20 |
100.0 |
main.cpp: In function ‘void solve()’:
main.cpp:79:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
79 | scanf("%d%d", &N, &M);
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp:84:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
84 | scanf("%d%d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function ‘int main()’:
main.cpp:123:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
123 | freopen("triunghiuri.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:124:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
124 | freopen("triunghiuri.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Subtask |
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
|---|---|---|---|---|
|
1,
2,
4,
5
|
1
|
correct |
0,009 |
3.06MB |
|
1,
2,
4,
5
|
2
|
correct |
0,013 |
3.17MB |
|
1,
2,
4,
5
|
3
|
correct |
0,001 |
176KB |
|
1,
2,
4,
5
|
4
|
correct |
0,001 |
176KB |
|
1,
2,
4,
5
|
5
|
correct |
0,014 |
3.19MB |
|
2,
4,
5
|
6
|
correct |
0,012 |
3.35MB |
|
2,
4,
5
|
7
|
correct |
0,02 |
3.52MB |
|
2,
4,
5
|
8
|
correct |
0,013 |
3.31MB |
|
2,
4,
5
|
9
|
correct |
0,001 |
176KB |
|
2,
4,
5
|
10
|
correct |
0,0 |
176KB |
|
3,
5
|
11
|
correct |
0,004 |
3.72MB |
|
3,
5
|
12
|
correct |
0,005 |
3.72MB |
|
3,
5
|
13
|
correct |
0,005 |
3.72MB |
|
3,
5
|
14
|
correct |
0,004 |
3.72MB |
|
3,
5
|
15
|
correct |
0,002 |
3.68MB |
|
3,
5
|
16
|
correct |
0,004 |
3.47MB |
|
4,
5
|
17
|
correct |
0,023 |
5.33MB |
|
4,
5
|
18
|
correct |
0,022 |
5.28MB |
|
4,
5
|
19
|
correct |
0,024 |
5.24MB |
|
4,
5
|
20
|
correct |
0,022 |
5.23MB |
|
4,
5
|
21
|
correct |
0,025 |
5.3MB |
|
4,
5
|
22
|
correct |
0,022 |
5.24MB |
|
4,
5
|
23
|
correct |
0,025 |
5.46MB |
|
4,
5
|
24
|
correct |
0,025 |
5.23MB |
|
4,
5
|
25
|
correct |
0,026 |
5.33MB |
|
4,
5
|
26
|
correct |
0,024 |
5.32MB |
|
4,
5
|
27
|
correct |
0,025 |
5.24MB |
|
4,
5
|
28
|
correct |
0,029 |
5.46MB |
|
4,
5
|
29
|
correct |
0,022 |
5.32MB |
|
4,
5
|
30
|
correct |
0,027 |
5.28MB |
|
4,
5
|
31
|
correct |
0,03 |
5.33MB |
|
4,
5
|
32
|
correct |
0,038 |
5.33MB |
|
4,
5
|
33
|
correct |
0,024 |
5.23MB |
|
4,
5
|
34
|
correct |
0,025 |
5.39MB |
|
4,
5
|
35
|
correct |
0,024 |
5.33MB |
|
4,
5
|
36
|
correct |
0,025 |
5.17MB |
|
4,
5
|
37
|
correct |
0,025 |
5.3MB |
|
4,
5
|
38
|
correct |
0,023 |
5.32MB |
|
4,
5
|
39
|
correct |
0,023 |
5.32MB |
|
4,
5
|
40
|
correct |
0,049 |
5.44MB |
|
4,
5
|
41
|
correct |
0,048 |
5.38MB |
|
4,
5
|
42
|
correct |
0,05 |
5.31MB |
|
4,
5
|
43
|
correct |
0,05 |
5.35MB |
|
5
|
44
|
correct |
0,008 |
4.24MB |
|
5
|
45
|
correct |
0,007 |
4.24MB |
|
5
|
46
|
correct |
0,015 |
4.66MB |
|
5
|
47
|
correct |
0,012 |
4.67MB |
|
5
|
48
|
correct |
0,009 |
4.24MB |
|
5
|
49
|
correct |
0,009 |
4.24MB |
|
5
|
50
|
correct |
0,015 |
4.67MB |
|
5
|
51
|
correct |
0,014 |
4.68MB |
|
5
|
52
|
correct |
0,013 |
4.67MB |
|
5
|
53
|
correct |
0,013 |
4.64MB |
|
5
|
54
|
correct |
0,014 |
4.67MB |
|
5
|
55
|
correct |
0,012 |
4.7MB |
Subtask |
Scor |
Scor maxim |
|---|---|---|
1 |
17,0 |
17
|
2 |
29,0 |
29
|
3 |
18,0 |
18
|
4 |
17,0 |
17
|
5 |
19,0 |
19
|