Skip to content

Instantly share code, notes, and snippets.

View mr0re1's full-sized avatar
🗿
slow

Ivan Orlov mr0re1

🗿
slow
View GitHub Profile
tax = 1.1
a = 5500 * tax # Gregs bike costs
b = 2800 * tax # Your bike costs
t = max(a, b)
# "Fairness" equation
# a / a_ = b / b_
# a_ + b_ = t
#include <iostream>
#include <cstdio>
#include <vector>
#include <string>
#include <algorithm>
#include <termios.h>
#include <fstream>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
# Copyright 2009 Daniel Dotsenko dotsa@hotmail.com
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT