Pagini recente » Borderou de evaluare (job #534111) | Borderou de evaluare (job #1900082) | Borderou de evaluare (job #656510) | Borderou de evaluare (job #1421133) | Borderou de evaluare (job #2733838)
Borderou de evaluare (job #2733838)
Raport evaluator
Compilare:
main.cpp: In function 'void init()':
main.cpp:23:14: warning: array subscript has type 'char' [-Wchar-subscripts]
ind[c] = p;
^
main.cpp:26:14: warning: array subscript has type 'char' [-Wchar-subscripts]
ind[c] = p;
^
main.cpp:29:14: warning: array subscript has type 'char' [-Wchar-subscripts]
ind[c] = p;
^
main.cpp: In function 'bool ok(int)':
main.cpp:40:33: warning: array subscript has type 'char' [-Wchar-subscripts]
h = (h * base + ind[s[i]]) % mod;
^
main.cpp:48:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = value; i < s.size(); i++)
~~^~~~~~~~~~
main.cpp:50:45: warning: array subscript has type 'char' [-Wchar-subscripts]
h = (h + mod - (p * ind[s[i - value]]) % mod) % mod;
^
main.cpp:51:33: warning: array subscript has type 'char' [-Wchar-subscripts]
h = (h * base + ind[s[i]]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 104ms | 1163kb | Time limit exceeded | 0 |
2 | 78ms | 1060kb | OK | 10 |
3 | 52ms | 1032kb | OK | 10 |
4 | 20ms | 393kb | OK | 10 |
5 | 41ms | 638kb | OK | 10 |
6 | 86ms | 790kb | OK | 10 |
7 | 3ms | 131kb | OK | 10 |
8 | 3ms | 131kb | OK | 10 |
9 | 5ms | 131kb | OK | 10 |
10 | 8ms | 217kb | Incorect | 0 |
Punctaj total | 80 |