Skip to content

howsiwei/cups

 
 

Repository files navigation

Usage Guide

JavaScript

node cups.js
node cups.js 13 14 2

Ruby

ruby cups.rb
ruby cups.rb 13 14 2

Python

python cups.py
python cups.py 13 14 2
# or
python3 cups.py
python3 cups.py 13 14 2

Java

javac JavaCups.java
# then
java JavaCups
java JavaCups 13 14 2

C

gcc cups.c -o cups
# then
./cups
./cups 13 14 2

C++

g++ cups.cpp -o cups
# then
./cups
./cups 13 14 2

PHP

php cups.php
php cups.php 13 14 2

Go

go run cups.go

Lua

lua cups.lua
lua cups.lua 13 14 2
# or
luajit cups.lua
luajit cups.lua 13 14 2

Haskell

ghc --make -O cups.hs
# then
./cups
./cups 13 14 2

Simulation

open the file ./simulation/index.html with any regular browser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 27.3%
  • C 13.5%
  • C++ 12.9%
  • Java 9.7%
  • PHP 7.6%
  • Haskell 6.2%
  • Other 22.8%