OII logo
  • Home
    • School selections
    • Regionals
    • Nationals & OIS
    • Tasks by technique
    • Tasks by contest
    • Tasks by year
  • Ranking
  • Algobadge
  • Forum
Log in / Sign up

Greedy Santa

Time limit: 0.8 sec
Memory limit: 64 MB
Input/output: stdin / stdout
Maximum score: 19
Translations:
English
Uploaded on: 27 October 2018
StatementAttachmentsTagsStatsSubmitSubmissionsHelp

Forum posts

aldo.carrolo's profile picture
[RISOLTO] Ottimizzazione: Greedy Santa
Come devo applicare la memoizzazione per ottimare il problema Greedy Santa. Codice: int greedy_santa(int gift[], int i, int sum) { if(gift[i] + sum > = M) { return gift[i] +...
DDave's profile picture
Output non corretto su Greedy Santa, subtask non valide quando dovrebbero
...n la sottposizione e la valutazione sulla piattaforma… Oggi in particolare sto provando a risolvere greedy santa, ma ritorna errata la subtask di esempio nr 001, che richiede output 10. Provando in locale, otteng...
pm2001's profile picture
Aiuto Greedy Santa
Ciao, ho scritto un codice per Greedy Santa, ottengo corrette tutte le subtasks tranne 2, probabilmente mi perdo qualcosa di ovvio, ma non lo t...
AndreaTirenti's profile picture
HELP Greedy Santa
sottoponendo il seguente codice ottengo 30 punti e non capisco perchè non fa le altre subtask: with open("input.txt","r") as f: N,B=map(int,f.readline().strip().split()) v=list(map(int,f.readline()...
Leyonad's profile picture
Problem ‘Greedy Santa’
Good evening. On Subtask 2 (N < = 20), on three tasks, I get the wrong output. Otherwise all outputs are correct. Does anyone know what could be the reason for this? #include < stdio.h > #include <...
Search other topics
Create new topic