Pagini recente » Summer Challenge 2007 | Cod sursa (job #2767) | Matrice | Cod sursa (job #1599080) | Borderou de evaluare (job #2774661)
Borderou de evaluare (job #2774661)
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:56:40: warning: array subscript has type 'char' [-Wchar-subscripts]
h = (1LL * h * sigma + ind[s[i]]) % mod;
^
main.cpp:66:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = value; i < s.size(); i++)
~~^~~~~~~~~~
main.cpp:68:53: warning: array subscript has type 'char' [-Wchar-subscripts]
h = (1LL * h + mod - (1LL * ind[s[i - value]] * p) % mod) % mod;
^
main.cpp:69:40: warning: array subscript has type 'char' [-Wchar-subscripts]
h = (1LL * h * sigma + ind[s[i]]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 106ms | 888kb | Time limit exceeded | 0 |
| 2 | 103ms | 917kb | Time limit exceeded | 0 |
| 3 | 101ms | 917kb | Time limit exceeded | 0 |
| 4 | 33ms | 393kb | Incorect | 0 |
| 5 | 101ms | 917kb | Time limit exceeded | 0 |
| 6 | 103ms | 917kb | Time limit exceeded | 0 |
| 7 | 2ms | 131kb | OK | 10 |
| 8 | 6ms | 131kb | OK | 10 |
| 9 | 6ms | 131kb | Incorect | 0 |
| 10 | 95ms | 786kb | Incorect | 0 |
| Punctaj total | 20 |