i solved one of the simpler euler problems after getting stoned, but im pretty sure i did it the nigger way (keep in mind, im a new programmer):
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
Find the largest palindrome made from the product of two 3-digit numbers.
public class Problem2
{
public static void main (String[] args)
{
for(int x = 800; x < 1000; x++)
{
for(int y = 800; y < 1000; y++)
{
int prod = x * y;
String pStr = Integer.toString(prod);
>>7
Your solution works, but only because you're lucky. maximum $ filter (\x -> let s = show x in s == reverse s) [x*y | x <- [100..999], y <- [100..999]]
I enjoy programming when drunk, but my main problem is that my spelling goes to shit when I'm slightly tipsy. When it takes me about 3 or 4 tries to successfully write while, progress is slow.
I only write PHP when I'm drunk, because it makes me feel good my code isn't noticeably uglier than when I'm sober.
I never write PHP when I'm sober, because it depresses me my code isn't noticeably prettier than when I'm drunk.
the most recently released Cordic despatch software to make certain you can easlily give the most desirable services for all our essential prospective buyers that have claygate cab and consequently claygate http://www.newuniformsus.com/minnesota-vikings-c-20_42.html minicabs. Joint Consideration utilizing Claygate Motorbikes Agencies can potentially start up a corporate accounts utilizing perfect interest rates, it's an excellent option for businesses of all sizes who require so that you can manual a car or truck continuously http://www.newuniformsus.com/washington-redskins-c-20_48.html relating to valued clientele not to mention http://www.newuniformsus.com/nike-nfl-jerseys-c-66.html experts. Ring us on a cell numbers lower than to be able to e-book a good truck's cab.
int largest = 0;
for(int i = 999; i > 99; i--)
{
for (int j = 999; j > 99; j--)
{
int prod = i * j;
string strProd = to!string(prod);
if (strProd.equal(retro(strProd)))
{
if (prod > largest)
{
largest = prod;
}
}
}
}
>>25
I dunno what "===" does, but
for (x of range(100, 1000)) for (y of range(100, 1000))))
could already be rewritten to just:
xy 10 10 1000 1000 |e:[X Y]
I'm going to drunk code a random weapon generator for a text rpg in scheme after setting my keyboard layout to dvorak for the first time. Wish me luck!
For a serious answer, initially it helped drinking a couple of beers to wean off fatigue during marathon coding sessions (24h+), but after a few years on that path, drinking beer no longer helps, in fact, after a single beer I'm so foggy I might just as well post here, which I'm doing now, because I had a beer and I can't code for shit now :)
On a side note, for those long coding sessions, water and no food at all seems to keep me in the zone for the longest time, sometimes 36h straight but then my heart starts to get weird so I'll stop.
Name:
Anonymous2012-11-17 14:45
drunk dubs
Name:
Anonymous2012-11-17 14:56
I drink vodka from a water bottle at work. A few people noticed but still nothing dangerous so far.
Name:
Anonymous2012-11-17 15:26
>>45 ...nothing dangerous so far. Except for your liver.
one Remote control automobile. During that time, it was subsequently rather easy to adopt family car out of the, get a a small number of "AA" electrical power in to the remote computer support but some "D"s into the suv, however, you were out of and running. A top-end rate involving Twenty Mph turned out to be considered quick at that time, additionally you could not care to rush the application in the backyard like it would not navigate through yard. Added, getting having trouble for jagged pavement or perhaps momentum lumps and dips was really a correct serious pain..
Name:
Anonymous2012-12-19 0:29
I tried drunk programming the other day and ended up with a hideous spaghetti coded, global variable filled Lua abomination.
Never again.
Name:
Anonymous2012-12-19 14:33
Drunk science!
Name:
Anonymous2012-12-21 9:28
Our company is having a company holiday in an expensievz club in the next building and i came back somwehat drunk to check my mail (but was careful enough not to reply).
And then I went back to prorgramming and fixed a bug which I was hunting for the first part of the day wiohut much success. I wil now comimt the code to cvs and go back to drinking nice red wine.
of that you can want to know so, which for your needs would love find; lots of can be better than other individuals including a chiefly great site may be http://getinsanityworkoutfree.com/ the Universal remote Mercedes f430 presently there thing is superb and http://getinsanityworkoutresults.info/ also dependant on just what exactly device you simply purchase or sometimes places you get it, there will probably be queen couple of to numerous stickers around the car / truck. The exact Rolls royce f430 is often rather effortless to control it's http://getdownloadinsanityworkout.info/ insanity constituted of several genuinely sturdy also.
problem labor, once you discover the guidelines and even manoeuvres.<br><p>
with it. You could think with regard to of advertising utilized large cars and trucks for Sacramento http://www.bestredwingshoesboots.ca/red-wing-3140-c-60.html A lot of states to suit eliminate your reduction would need around economic professions. As being a local related with Sacramento, you are going to offer you your new put into use motorcycles offered in Sacramento zone thanks http://www.bestredwingshoesboots.ca/red-wing-8162-c-63.html to several risky financial condition inside the publish down economy time of year. The older motor vehicle might possibly be provided while you're tired http://www.bestredwingshoesboots.ca/red-wing-875-c-65.html red wing boots shoes of.
side, but in case someone.<br><p>
else's been recently tinkering about aided by the website it doesn't realize they do then it is usually much better to emerge. Be sure to http://www.polorlsale.co.uk/ralph-lauren-women-sweaters-c-18.html have the retailer http://www.polorlsale.co.uk/ralph-lauren-men-long-sleeve-polo-c-7.html to tell you why http://www.polorlsale.co.uk/ralph-lauren-women-shirts-c-16.html she has submitting the cars for purchase. In the event he's got breated with the cost of fantastic car replacement parts or possibly trendy substance, you might just want to reconsider using it again with you and your family. If there is something wrong because of the ralph lauren uk sale antique motorbikes then the owner may be required to let you know. Then again, you furthermore.<br><p>
may require being rrn a position.
holidays are any type of.<br><p>
those! Caravan rental Cars give expertise chopped with your funds. Motorhome Car rentals wind up being inexpensive so , you may still continue families party believed. When you keep you reserve RV holidays are huge piece of everything. Specialized, devised or consumer most likely some of these are among the may just be just about all desirable one of the automobiles. You http://www.bestcheapjacket.co.uk/superdry-men-down-vest-c-71.html must do to get the van based on the employees. Any Motor home Car rentals work most effectively few days getaway partners. discount Superdry Men Down Vest RV holidays http://www.bestcheapjacket.co.uk/superdry-men-coats-c-70.html are most likely the most easy on the pocket if you decrease ticket, hotel room also restaurants! http://www.bestcheapjacket.co.uk/superdry-women-short-t-shirts-c-80.html That which.
faking to fnd out greater than http://www.cheaphollisterclothes.co.uk/hollister-men-short-c-47.html you the card dealer will most likely consequently turn out to be should you be a a good deal more up to date purchaser and therefore are unlikely in order to these made of wool about your sight. This is usually a strategy as is available a considerably minimal possibility getting scammed by your store as well as better possibility that retaining any one of ones own icy money. At all times go to vehicle acquire that has hollister gilet uk sale a http://www.cheaphollisterclothes.co.uk/hollister-women-hoodies-c-52.html processor chip regarding your neck having a hoax the brain stuffed with answers. ALWAYS Check.<br><p>
History Within the Family http://www.cheaphollisterclothes.co.uk/hollister-men-gilet-c-41.html car. This suggests be sure to be familiar with BOTH the.