Pagini recente » Borderou de evaluare (job #1025238) | Borderou de evaluare (job #2823950) | Borderou de evaluare (job #2801074) | Borderou de evaluare (job #2783902) | Borderou de evaluare (job #2616532)
Borderou de evaluare (job #2616532)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:19:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d", ans);
^
main.cpp:9:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("divk.in", "r", stdin);
^
main.cpp:10:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("divk.out", "w", stdout);
^
main.cpp:13:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &n, &k, &a, &b);
^
main.cpp:14:87: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 1; i <= n; i++) scanf("%d", &v[i]), v[i] = ((v[i] % k) + v[i - 1]) % k;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 3ms | 131kb | OK | 10 |
3 | 8ms | 131kb | OK | 10 |
4 | 25ms | 262kb | OK | 10 |
5 | 46ms | 524kb | OK | 10 |
6 | 74ms | 1310kb | OK | 10 |
7 | 69ms | 917kb | OK | 10 |
8 | 111ms | 1179kb | OK | 10 |
9 | 160ms | 2097kb | OK | 10 |
10 | 177ms | 2097kb | Incorect | 0 |
Punctaj total | 90 |