Skip to content

Instantly share code, notes, and snippets.

View tats-u's full-sized avatar

Tatsunori Uchino tats-u

View GitHub Profile
@tats-u
tats-u / kiyoshi.py
Created March 13, 2016 15:15
キヨシズンドコ節 in Python3 (Zlib license/Copyright © 2016 Tats.U.)
from random import *
seed()
count = 0
tbl = ("ズン", "ドコ")
while count < 5:
rnd = randrange(2)
if count < 4:
if rnd == 0:
count += 1
else:
@tats-u
tats-u / kiyoshi.cpp
Last active March 13, 2016 15:13
キヨシズンドコ節 in C++ (Zlib license/Copyright © 2016 Tats.U.)
#include <iostream>
#include <random>
#include <array>
#include <string>
using namespace std;
enum {
ZUN,
DOKO,
};
int main() {