This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def calc_monty_hall(cnt): | |
""" Monty Hall Problem Simulation | |
https://en.wikipedia.org/wiki/Monty_Hall_problem | |
""" | |
import random | |
doors = set([1,2,3]) | |
cnt_player_noswitch = 0 | |
cnt_player_switch = 0 | |
cnt_player_random = 0 | |
for i in range(1, cnt+1): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.23; | |
/// @title The Panmunjom Declaration for Peace, Prosperity and Unification of the Korean Peninsula | |
/// @author atomrigs | |
contract PanmunjomDeclaration { | |
string constant public content = "\xED\x95\x9C\xEB\xB0\x98\xEB\x8F\x84\xEC\x9D\x98\x20\xED\x8F\x89\xED\x99\x94\xEC\x99\x80\x20\xEB\xB2\x88\xEC\x98\x81\x2C\x20\xED\x86\xB5\xEC\x9D\xBC\xEC\x9D\x84\x20\xEC\x9C\x84\xED\x95\x9C\x20\xED\x8C\x90\xEB\xAC\xB8\xEC\xA0\x90\x20\xEC\x84\xA0\xEC\x96\xB8\x0A\x0A\xEB\x8C\x80\xED\x95\x9C\xEB\xAF\xBC\xEA\xB5\xAD\x20\xEB\xAC\xB8\xEC\x9E\xAC\xEC\x9D\xB8\x20\xEB\x8C\x80\xED\x86\xB5\xEB\xA0\xB9\xEA\xB3\xBC\x20\xEC\xA1\xB0\xEC\x84\xA0\xEB\xAF\xBC\xEC\xA3\xBC\xEC\xA3\xBC\xEC\x9D\x98\xEC\x9D\xB8\xEB\xAF\xBC\xEA\xB3\xB5\xED\x99\x94\xEA\xB5\xAD\x20\xEA\xB9\x80\xEC\xA0\x95\xEC\x9D\x80\x20\xEA\xB5\xAD\xEB\xAC\xB4\xEC\x9C\x84\xEC\x9B\x90\xEC\x9E\xA5\xEC\x9D\x80\x20\xED\x8F\x89\xED\x99\x94\xEC\x99\x80\x20\xEB\xB2\x88\xEC\x98\x81\x2C\x20\xED\x86\xB5\xEC\x9D\xBC\xEC\x9D\x84\x20\xEC\x97\xBC\xEC\x9B\x90\xED\x95\x98\x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
contract SimpleStorage { | |
uint storedData; | |
function set(uint x) { | |
storedData = x; | |
} | |
function get() constant returns (uint) { |