Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Tempi di esecuzione 3.2

C
Capra (890 points)
2 5 12
in Es2 by (890 points)
closed by
Ho caricato il program02 dopo averlo testato sul mio computer.

Sul mio computer il programma supera i test con i seguenti tempi:

Test1:2305.128 ms

Test2:5065.468 ms

Test3:10275.319 ms

Test4:26036.225 ms

Test5:38547.490 ms

Mentre una volta caricato il programma supera solo 4 dei 5 test perchè l'ultimo test va in timeout,ma andando a vedere tra i risultati i tempi degli altri test sono leggermente minori.

Test1:2809.255 ms

Test2:4526.773 ms

Test3:9477.935 ms

Test4:23506.263 ms

Test5:Timeout 50 sec

Ora io mi chiedo se ci sia un errore nel mio codice, o se c'è la possibilità di un errore nella correzione.
244 views
closed with the note: answered

1 Answer

Best answer
P
Powner (5600 points)
36 68 85
by (5.6k points)
selected by
Nessun errore, il timeout viene superato perché sei realmente fuori dai 50 secondi.

I grader sono fatti per eseguire ciascun test entro 10 secondi, perciò il timeout (globale) è di 10*N, dove N=numero di test dell'esercizio.

Nel tuo caso, i tempi che hai sul tuo computer superano abbondantemente i 50 secondi, perciò l'ultimo test non ti viene calcolato perché durante il run va in timeout.