Skip to content

Instantly share code, notes, and snippets.

import hashlib, itertools, math, re, string, time
from collections import deque
start = time.time()
def runtime():
return time.time() - start
dirs = {
def jrange(x, y):
return list(range(x, y))
CurrLen = 8
def Find():
global CurrLen
NotA = [chr(i) for i in jrange(9, 13) + jrange(32, 60) + jrange(62, 126)]
A = "a" # 61
Ans = [None] * 1631129
def jrange(x, y):
return list(range(x, y + 1))
CurrLen = 8
def Find():
global CurrLen
NotA = [chr(i) for i in jrange(9, 13) + jrange(32, 60) + jrange(62, 126)]
A = "a" # 61
Ans = []
#include <iostream>
#include <set>
#include <vector>
using namespace std;
set<char> defaultCharSet = {};
void addEdit(int lastEdit, set<string>* result, vector<string>* expand, string s) {
if (result->count(s)) return;
#include <algorithm>
#include <functional>
#include <iostream>
#include <random>
#include <string.h>
using namespace std;
const default_random_engine generator;
const uniform_int_distribution<int> distribution(1, 6);
@hyperneutrino
hyperneutrino / go-out-and-vote.md
Created February 15, 2021 19:26
Remainder of aleksusklim's Go Out And Vote! answer

VOTING!

Yesterday (two days ago, actually…) was December 4th, 2016, Election Day in the Republic of Uzbekistan.

Since I am an Uzbekistan citizen eligible to vote, then I went out and voted before answering this challenge.

Than I returned home and wrote this absolutely regular C code, that has nothing special:

///\ http://codegolf.stackexchange.com/questions/98968 //\\

@hyperneutrino
hyperneutrino / footer-fix.user.js
Created March 28, 2021 16:32
Fix the footer on CGCC Meta
@hyperneutrino
hyperneutrino / titin.txt
Created April 4, 2021 15:42
Full name of TITIN
methionylthreonylthreonylglutaminylalanylprolylthreonylphenylalanylthreonylglutaminylprolylleucylglutaminylserylvalylvalylvalylleucylglutamylglycylserylthreonylalanylthreonylphenylalanylglutamylalanylhistidylisoleucylserylglycylphenylalanylprolylvalylprolylglutamylvalylseryltryptophylphenylalanylarginylaspartylglycylglutaminylvalylisoleucylserylthreonylserylthreonylleucylprolylglycylvalylglutaminylisoleucylserylphenylalanylserylaspartylglycylarginylalanyllysylleucylthreonylisoleucylprolylalanylvalylthreonyllysylalanylasparaginylserylglycylarginyltyrosylserylleucyllysylalanylthreonylasparaginylglycylserylglycylglutaminylalanylthreonylserylthreonylalanylglutamylleucylleucylvalyllysylalanylglutamylthreonylalanylprolylprolylasparaginylphenylalanylvalylglutaminylarginylleucylglutaminylserylmethionylthreonylvalylarginylglutaminylglycylserylglutaminylvalylarginylleucylglutaminylvalylarginylvalylthreonylglycylisoleucylprolylasparaginylprolylvalylvalyllysylphenylalanyltyrosylarginylaspartylglycylalanylglutamylisoleucy
Assume that there exists a number that is a Two-Bit Number in both decimal and binary. Therefore, we can represent it as:
10^x + 10^y = 2^a + 2^b for some positive integers x<y, a<b.
Establish:
- even * even = even
- odd * even = even
- odd * odd = odd
- even + even = odd + odd = even
@hyperneutrino
hyperneutrino / rickrollguard.user.js
Last active April 12, 2021 20:47
Rickroll Guard
// ==UserScript==
// @name Rickroll Guard
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author hyper-neutrino
// @match https://www.youtube.com/watch?v=dQw4w9WgXcQ
// @icon https://www.google.com/s2/favicons?domain=youtube.com
// @grant none
// ==/UserScript==