Pagini recente » Borderou de evaluare (job #1300820) | Monitorul de evaluare | Borderou de evaluare (job #3279087) | Borderou de evaluare (job #3211125) | Borderou de evaluare (job #2474131)
Borderou de evaluare (job #2474131)
Raport evaluator
Compilare:
main.cpp: In function 'long long int hashFunc(std::__cxx11::string)':
main.cpp:17:48: warning: array subscript has type 'char' [-Wchar-subscripts]
hash = hash*3LL + 1LL*cod[word[len-i-1]];
^
main.cpp: In function 'int main()':
main.cpp:32:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (len > str.size()) {
~~~~^~~~~~~~~~~~
main.cpp:40:54: warning: array subscript has type 'char' [-Wchar-subscripts]
hash = hash*3LL + 1LL*cod[str[str.size()-i-1]];
^
main.cpp:46:41: warning: array subscript has type 'char' [-Wchar-subscripts]
hash = hash - 1LL*cod[str[i+len]]*p;
^
main.cpp:47:41: warning: array subscript has type 'char' [-Wchar-subscripts]
hash = hash*3LL + 1LL*cod[str[i]];
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 131kb | OK | 10 | 0 |
| 2 | 2ms | 131kb | OK | 10 |
| 3 | 6ms | 262kb | OK | 10 |
| 4 | 20ms | 1048kb | OK | 10 |
| 5 | 284ms | 13496kb | OK | 10 |
| 6 | 699ms | 12054kb | OK | 10 |
| 7 | 903ms | 18345kb | Time limit exceeded | 0 |
| 8 | 903ms | 21884kb | Time limit exceeded | 0 |
| 9 | 902ms | 23457kb | Time limit exceeded | 0 |
| 10 | 902ms | 52031kb | Time limit exceeded | 0 |
| Punctaj total | 0 |