Search found 3 matches

by BoFairfield
Tue Mar 23, 2010 8:13 pm UTC
Forum: Language/Linguistics
Topic: Moderatores Populusque XKCDi [Latin]
Replies: 167
Views: 76418

Re: Moderatores Populusque XKCDi [Latin]

My latin teacher from 8th-10th grade was a contributor to all of Ecce Romani, and authored ecce romani III. I'm still a latin student now, in the process of memorizing 1900 lines of Vergil for the AP exam come may. Latin is the best. It's a very tightly knit group of students at my school who take i...
by BoFairfield
Wed Dec 30, 2009 5:53 pm UTC
Forum: Logic Puzzles
Topic: Romeo & Juliet meetup
Replies: 18
Views: 3337

Re: Romeo & Juliet meetup

you got 1150/3600, which is because your for loops don't include midnight, whereas I got 1171/3721 because mine do. The OP doesn't specify which way is correct, but it's just a difference of <= vs < in the for loop headers
by BoFairfield
Wed Dec 30, 2009 6:24 am UTC
Forum: Logic Puzzles
Topic: Romeo & Juliet meetup
Replies: 18
Views: 3337

Re: Romeo & Juliet meetup

Since there are a relatively small number of cases, I just wrote a quick java program to test each one. here's the method body: int count = 0, total = 0; for(int r = 0; r <= 60; r++) for(int j = 0; j <= 60; j++) { if( Math.abs(r-j) <= 10) count++; total++; } Syste...

Go to advanced search