All pastes #933976 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-08 15:52 UTC
rendered paste body
/*
 2 CPU solution
 */


int word;                      // This node's number, and node count
int number;                    // Current word number
 
void init()
{
        word = 1;
        number = 0;            // Speedup the filter a bit
}
 
void filter()
{
number++; // Advance to next word;
~word = word; // logic not the word to know if we should handle it or not
}