function result(int time, string activity){
int value = 0;
    list useful = array...; 
if (EXISTS(useful[activity])){
value++;
    time * value;
    }
    return value;
}
If the conditional statement barely ever gets reached, your return value is 0. If your return value is 0. you gained absolutely nothing. Time * 0 = 0.
This is more or less what we are fighting against, time, the last of it.

Comments
Post a Comment