Pagini recente » Borderou de evaluare (job #2320063) | Borderou de evaluare (job #522736) | Borderou de evaluare (job #3298152) | Borderou de evaluare (job #270812) | Borderou de evaluare (job #2733840)
Borderou de evaluare (job #2733840)
Raport evaluator
Compilare:
main.cpp: In function 'void init()':
main.cpp:25:14: warning: array subscript has type 'char' [-Wchar-subscripts]
ind[c] = p;
^
main.cpp:28:14: warning: array subscript has type 'char' [-Wchar-subscripts]
ind[c] = p;
^
main.cpp:31:14: warning: array subscript has type 'char' [-Wchar-subscripts]
ind[c] = p;
^
main.cpp:33:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size(); i++)
~~^~~~~~~~~~
main.cpp:35:43: warning: array subscript has type 'char' [-Wchar-subscripts]
H[i] = (H[i - 1] * base + ind[s[i]]) % mod;
^
main.cpp: In function 'bool ok(int)':
main.cpp:52:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = value; i < s.size(); i++)
~~^~~~~~~~~~
main.cpp:54:45: warning: array subscript has type 'char' [-Wchar-subscripts]
h = (h + mod - (p * ind[s[i - value]]) % mod) % mod;
^
main.cpp:55: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 | 1335kb | Time limit exceeded | 0 |
| 2 | 92ms | 1437kb | OK | 10 |
| 3 | 37ms | 1208kb | OK | 10 |
| 4 | 25ms | 462kb | OK | 10 |
| 5 | 60ms | 929kb | OK | 10 |
| 6 | 88ms | 1056kb | OK | 10 |
| 7 | 3ms | 131kb | OK | 10 |
| 8 | 3ms | 131kb | OK | 10 |
| 9 | 6ms | 266kb | OK | 10 |
| 10 | 9ms | 393kb | Incorect | 0 |
| Punctaj total | 80 |