Field | Value |
---|---|
DIP: | TBA |
Review Count: | 0 |
Author: | Manu Evans, Walter Bright, Andrei Alexandrescu |
Status: | Draft |
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
import java.util.Random; | |
public class Question4622699 { | |
final static int nrounds = 7; | |
final static int ntables = 5; | |
final static int nchairs = 4; | |
final static int npeople = ntables * nchairs; | |
final static Random random = new Random(); | |
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
mixin template D1Ops() { | |
// binary operations | |
static foreach(op, d1; | |
["+" : "opAdd", "-" : "opSub", "*" : "opMul", "/" : "opDiv", | |
"%" : "opMod", "&" : "opAnd", "^" : "opXor", "|" : "opOr", | |
"<<" : "opShl", ">>" : "opShr", ">>>" : "opUShr", "~" : "opCat", | |
"in" : "opIn"]) { | |
static if(__traits(hasMember, typeof(this), d1)) | |
alias opBinary(string s : op) = mixin(d1); | |
// _r version |
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
######################################################################## | |
# Geany Make file for Windows | |
# =========================== | |
# | |
# Simple instructions: | |
# -------------------- | |
# - Download and install MinGW to C:\MinGW | |
# - Download and install GTK+ bundle to C:\GTK | |
# - Add `bin` dir of both of above to PATH environment variable | |
# - Change into the root of the Geany source code (this directory) |