Kelionė namo 1

Taškai: 100

Compile: OK

kelione_namo_1.cpp: In function ‘int main()’: kelione_namo_1.cpp:12:45: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kelione_namo_1.in", "r", stdin); ^ kelione_namo_1.cpp:13:47: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kelione_namo_1.out", "w", stdout); ^ kelione_namo_1.cpp:21:20: warning: iteration 100001u invokes undefined behavior [-Waggressive-loop-optimizations] dp[0][i]=-1; ^ kelione_namo_1.cpp:20:19: note: containing loop for(int i=0; i<100002; i++){ ^

nr.resulttimemessage
1True0.004 sok
2True0.004 sok
3True0.004 sok
4True0.004 sok
5True0.004 sok
6True0.004 sok
7True0.004 sok
8True0.196 sok
9True0.368 sok
10True0.264 sok
11True0.376 sok
12True0.256 sok
13True0.236 sok
14True0.312 sok
15True0.004 sok
16True0.004 sok
17True0.004 sok
18True0.004 sok
19True0.004 sok
20True0.004 sok
21True0.004 sok
22True0.26 sok
23True0.248 sok
24True0.212 sok
25True0.272 sok
26True0.308 sok
27True0.232 sok
28True0.288 sok
29True0.308 sok
30True0.244 sok
31True0.252 sok
32True0.004 sok
33True0.004 sok
34True0.004 sok
35True0.004 sok
36True0.004 sok
37True0.004 sok
38True0.004 sok
39True0.004 sok
40True0.004 sok
41True0.004 sok
42True0.356 sok
43True0.372 sok
44True0.38 sok
45True0.412 sok
46True0.348 sok
47True0.284 sok
48True0.364 sok
49True0.296 sok
50True0.36 sok
51True0.3 sok