Gerald's blog

By Gerald, 9 years ago, In English

Hey, folks!

I am not a fan of sport-programming t-shirts, but surely know that some of you would like to have one. If you wanna get a t-shirt, just add yourself in Google Form. After a couple of days I will pick a person randomly from the list, and contact him/her for contacts.

Also, I didn't decide how to calculate a random seed fair enough. So, feel free to propose something :)

Cheers!

Edit 1: Guys, please, don't mess around with the doc. Now you cannot edit the doc, please, add a comment with your handle.

Edit 2: Ok, you forced me to delete Google Doc, and spend more time, thanks :) Please, add you handle again in Google Form. Pay attention, you can only add your handle once. Make sure you wrote it correctly. Also to prevent cheating, I will chose among people who participated in at least 2 competitions.

Edit 3: Seems that everybody who wanted to participate in this put nickname in form. So, we can start the lottery.

I was super lazy, so I decided not to do anything complicated. I wrote python script:

#!/usr/bin/python                                                                                                                                                              
import random

filename = "input.txt"
times = 20

with open(filename) as f:
  lines = f.readlines()
  random.seed(314159265)
  for i in xrange(times):
    index = random.randint(0, len(lines) - 1)
    name = lines[index]
    print index, name[:len(name)-1]

Firstly, I picked 20 nicknames:

  • 202 TooSchoolForCool
  • 179 Hdz_78
  • 202 TooSchoolForCool
  • 259 LouisCK
  • 18 serghov
  • 324 krismaz
  • 290 dutzul
  • 188 Swift
  • 86 Elk-cloner
  • 233 TahaMahmoud
  • 251 bnick
  • 179 Hdz_78
  • 168 muratt
  • 107 heaton
  • 6 zeulb
  • 53 Prestige
  • 157 bayram
  • 242 Mohammad_Mohsin_COU
  • 120 sampriti
  • 199 gridnevvvit

Interesting that Mohammad_Mohsin_COU wrote his nickname in a wrong way, but I fixed it :)

Then I ran the same program with another filename and times=1. And the winner is: muratt. Congratulations to him!

  • Vote: I like it
  • +45
  • Vote: I do not like it

| Write comment?
»
9 years ago, # |
Rev. 2   Vote: I like it +4 Vote: I do not like it

For the random seed: write a program to get the number of participants and output one randomly (but independently of the computer the program is running or the time the program was executed). Send (or upload) the program in a compressed file protected by password, and reveal the password the day you want to finish the charity.

  • »
    »
    9 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Sounds good enough! Thanks for suggestion :)

»
9 years ago, # |
Rev. 2   Vote: I like it +30 Vote: I do not like it

My method to choose a seed:

  1. Open Google Maps
  2. Close your eyes and click on any spot randomly
  3. Find the weather for that spot or use the product of latitude and longitude as seed.
»
9 years ago, # |
  Vote: I like it +72 Vote: I do not like it

Downvote the post, so that it will disappear from the recent actions. XD

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

is it gonna be free ?

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

A few observations: I don't think people will stop trolling around the document; maybe a Google Form would be better. Also there's the case of people with multiple accounts (since I don't think you want the burden of checking everyone). In any case, it's a very interesting social experiment)))

  • »
    »
    9 years ago, # ^ |
    Rev. 2   Vote: I like it +29 Vote: I do not like it

    Creating fake accounts for Gerald's T-shirts. :))

    • »
      »
      »
      9 years ago, # ^ |
        Vote: I like it +4 Vote: I do not like it

      it would be better if you haven't said that :)

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

There are many spammers in doc.

»
9 years ago, # |
Rev. 4   Vote: I like it +1 Vote: I do not like it

i think you should only give it to people who are <= Master because most of other people have a t-shirt.

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I'd love to get a T-shirt! :)

»
9 years ago, # |
  Vote: I like it +1 Vote: I do not like it

I'd like to get a T-Shirt =)

»
9 years ago, # |
  Vote: I like it -8 Vote: I do not like it

I'd like to get a t-shirt as well.

I had posted in the Google doc but my id got trolled sigh

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

add my handle! I want one too!

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Sorry guys, some of you have to add handle in Google Form again. Hope, that this time there will be no mess.

»
9 years ago, # |
  Vote: I like it +17 Vote: I do not like it

Does anyone want to bet how many red will apply for a free T-shirt? :-)

  • »
    »
    9 years ago, # ^ |
      Vote: I like it +12 Vote: I do not like it

    Let's bet on a T-shirt

  • »
    »
    9 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Cool, I'm no longer red so this doesn't apply to me =)

  • »
    »
    9 years ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    More like, how many people who actually won a t-shirt will still apply. Ultimate trolling :D

    • »
      »
      »
      9 years ago, # ^ |
        Vote: I like it -7 Vote: I do not like it

      What's wrong with wanting 2 T-shirts :p

      (for those who think I'm serious: no I didn't win a T-shirt and I didn't apply for this)

  • »
    »
    9 years ago, # ^ |
      Vote: I like it +6 Vote: I do not like it

    So turns out that this joke wasn't a complete joke, out of those 19 people mentioned in Gerald's list the colour distribution is as follows:

    red: 2
    orange: 4
    purple: 7
    blue: 3
    green: 2
    gray: 1

»
9 years ago, # |
  Vote: I like it +14 Vote: I do not like it

You can take some function from string to int, and winner would be a man with the greatest value of function(handle).

  • »
    »
    9 years ago, # ^ |
      Vote: I like it +45 Vote: I do not like it

    Aha, codeforces rating:)

    • »
      »
      »
      9 years ago, # ^ |
        Vote: I like it -16 Vote: I do not like it

      Yeah, and we can pick the smallest value, not the biggest :P

    • »
      »
      »
      9 years ago, # ^ |
        Vote: I like it +14 Vote: I do not like it

      Sine function of user rating is good idea imho

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

When you do the Lotteries

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I want a T-shirt too =D

»
9 years ago, # |
  Vote: I like it +2 Vote: I do not like it

You shouldn't give t-shirt to unrated accounts because someone can make many accounts easily

  • »
    »
    9 years ago, # ^ |
    Rev. 2   Vote: I like it +9 Vote: I do not like it

    I will chose among people who participated in at least 2 competitions.

»
9 years ago, # |
Rev. 2   Vote: I like it +16 Vote: I do not like it

Weaponised shitposting.

(here's the original version)

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Can you always do this when you got a t-shirt :P

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

So close, Only two names between me and winner) Congrats!