AMC answer frequencies/adventures with Python

by BOGTRO, Oct 25, 2015, 2:52 AM

So tonight I decided I should actually figure out how Python works, since the language made no sense to me and yet it's somewhat important anyway. As usual, instead of actually learning how something works, I decided to start with a problem, write some god-awful attempt at making an attempt towards doing the problem, and eventually building up something working through (heavy) use of google.

Anyway, the problem I decided to do was to determine the frequency of AMC answers over the last few years (where "few" in this sense turned out to be 14), because
  • Someone once said, long ago, that this would be an interesting programming exercise.
  • It seemed like something that would actually be a good practical programming exercise, as opposed to the USACO/Codeforces/etc. that I usually do.
  • It's apparently extremely difficult to do this exercise in a major language other than Python, so it seemed like it would be well-suited to my purposes.
Unfortunately, it turned out that downloading Python was pretty difficult, and for some reason I decided not to download an actual IDE (something reason something), so it took me quite a while to figure out how to get it set up, and since I'm computer-illiterate I couldn't even find what directory I'd put the download in...

Anyway, after several adventures messing with the system path and trying to get the standard libraries to actually work, it appeared that "HelloWorld.py" in Notepad++ was actually running properly in the command prompt, so I could finally get started on the problem. But turns out that Python 3.5 and Python 2.7 are very distinct things, and so
print 'Hello World!'
didn't work. Oops. Ok, so now I actually got HelloWorld.py to run properly, so I could finally actually get started on the problem.

All this is to lead up to a couple of hours later, where results were achieved!
_________AMC 12_________
Problem 1: 6 1 12 4 5
Problem 2: 6 6 6 6 4
Problem 3: 5 7 4 6 6
Problem 4: 6 11 5 2 4
Problem 5: 6 5 6 10 1
Problem 6: 9 6 4 6 3
Problem 7: 3 10 6 6 3
Problem 8: 4 3 11 6 4
Problem 9: 7 8 6 5 2
Problem 10: 6 7 4 6 5
Problem 11: 3 3 9 6 7
Problem 12: 2 8 2 12 4
Problem 13: 1 11 5 8 3
Problem 14: 3 4 6 12 3
Problem 15: 3 5 7 11 2
Problem 16: 3 6 9 5 5
Problem 17: 4 9 4 9 2
Problem 18: 3 8 9 5 3
Problem 19: 4 7 4 5 8
Problem 20: 3 9 8 3 5
Problem 21: 9 2 7 7 3
Problem 22: 3 5 9 6 5
Problem 23: 7 7 7 4 3
Problem 24: 3 6 8 7 4
Problem 25: 3 8 5 7 5
Total: 112 162 163 164 99
_________AMC 10_________
Problem 1: 3 1 13 7 4
Problem 2: 5 7 7 3 6
Problem 3: 6 6 4 7 5
Problem 4: 6 6 8 6 2
Problem 5: 3 9 6 5 5
Problem 6: 6 6 7 7 2
Problem 7: 6 9 7 3 3
Problem 8: 4 9 4 6 5
Problem 9: 6 10 2 8 2
Problem 10: 6 4 8 3 7
Problem 11: 5 7 9 5 2
Problem 12: 8 4 10 3 3
Problem 13: 3 7 6 6 6
Problem 14: 4 7 6 9 2
Problem 15: 3 5 5 8 7
Problem 16: 3 9 4 7 5
Problem 17: 2 9 8 8 1
Problem 18: 2 7 4 8 7
Problem 19: 4 3 11 5 5
Problem 20: 4 5 5 11 3
Problem 21: 5 6 8 6 3
Problem 22: 4 8 7 8 1
Problem 23: 1 8 7 9 3
Problem 24: 5 9 3 5 6
Problem 25: 4 12 6 4 2
Total: 108 173 165 157 97
Interestingly, B/C/D have almost exactly the same frequency, while A/E are significantly far behind on both tests, though the 10 has a very slightly higher concentration of Bs. Use this extremely important information wisely.

For those interested, the code is below, but if you're planning on C&Ping be warned that it takes about a minute to run.
Python code

Comment

4 Comments

The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
wait darn seems like normal distribution

by MathSlayer4444, Oct 25, 2015, 7:09 PM

The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Well, it seems like I'll be guessing B/C/D on 12B if my A score is good enough!

Short story:
This year, I had already scored solidly on 10A so on the 10B I guessed 4 questions (all Cs) and guess what! I got 0 of them right!!!!

by lucasxia01, Jul 4, 2016, 8:51 PM

The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Thanks! I will tell my non math friends this and see if they actually get a score below 32.5!

by techguy2, Feb 14, 2017, 3:54 AM

The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
A also appears more than E

by tigerzhang, Oct 8, 2021, 9:10 PM

The blog where... well, I speak

avatar

BOGTRO
Shouts
Submit
  • 1st shout in 2025

    by Pengu14, Mar 29, 2025, 5:17 PM

  • rip $          $

    by gamma_pi, Nov 4, 2024, 6:35 PM

  • 1st shout in 2024

    by EpicSkills32, May 18, 2024, 4:55 AM

  • Bro decides to post on a 8 year old post :skull:

    by cjdiamond9, Sep 12, 2023, 6:51 PM

  • bogtro is back no way

    by aidan0626, Aug 8, 2023, 10:37 PM

  • wait did you go to bca

    by tienxion, Jul 28, 2023, 3:52 AM

  • BOGTRO? more like BOGPRO

    by the_mathmagician, May 20, 2023, 10:13 PM

  • OMGGGG W MAN

    by Tiny123, Apr 2, 2023, 5:45 AM

  • BOGTRO'S BACK????

    by TethysTide, Mar 4, 2023, 1:31 AM

  • the prodigal son returns

    by BOGTRO, Mar 2, 2023, 9:10 AM

  • Bogtro OP

    by Alex-131, Oct 20, 2022, 4:06 PM

  • bogtro $$ $$

    by Math4Life7, Oct 7, 2022, 3:57 PM

  • bogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobogtrobog

    by michaelwenquan, Aug 23, 2022, 6:07 PM

  • :omighty:

    by Cygnet, Jun 30, 2022, 4:16 AM

  • blogg = = = = = = =dead

    by footballmaster, Jun 1, 2022, 1:24 AM

80 shouts
Tags
About Owner
  • Posts: 5818
  • Joined: Jun 29, 2006
Blog Stats
  • Blog created: Jun 2, 2015
  • Total entries: 8
  • Total visits: 22501
  • Total comments: 49
Search Blog
a