Skip to content

Latest commit

 

History

History
201 lines (140 loc) · 2.05 KB

File metadata and controls

201 lines (140 loc) · 2.05 KB

I/O List

** -*- koshu -*-

p : source P /a /b
q : source Q /b /c

|== R : p | meet q

A.k

** -*- koshu -*-

|-- P  /a 10  /b 40
|-- Q  /b 40  /c 80

Command koshu calc.k A.k produces:

** -*- koshu -*-
**
**  INPUT
**    calc.k
**    A.k
**
**  OUTPUT
**    <stdout>
**

|-- R  /c 80  /a 10  /b 40

*** 1 judge 

**
**  SUMMARY
**       1 judge  on R
**       1 judge  in total
**

B.k

** -*- koshu -*-

|-- P  /a 10  /b 40
|-- P  /a 10  /b 50
|-- P  /a 20  /b 50

|-- Q  /b 40  /c 80
|-- Q  /b 50  /c 80
|-- Q  /b 60  /c 80

Command koshu calc.k B.k produces:

** -*- koshu -*-
**
**  INPUT
**    calc.k
**    B.k
**
**  OUTPUT
**    <stdout>
**

|-- R  /c 80  /a 10  /b 40
|-- R  /c 80  /a 10  /b 50
|-- R  /c 80  /a 20  /b 50

*** 3 judges

**
**  SUMMARY
**       3 judges on R
**       3 judges in total
**

C.k

** -*- koshu -*-

|-- P  /a 30  /b 40
|-- P  /a 30  /b 50
|-- P  /a 40  /b 50

Command koshu calc.k C.k produces:

** -*- koshu -*-
**
**  INPUT
**    calc.k
**    C.k
**
**  OUTPUT
**    <stdout>
**

*** no judges

**
**  SUMMARY
**      no judges on R
**      no judges in total
**

B.k C.k

** -*- koshu -*-

|-- P  /a 10  /b 40
|-- P  /a 10  /b 50
|-- P  /a 20  /b 50

|-- Q  /b 40  /c 80
|-- Q  /b 50  /c 80
|-- Q  /b 60  /c 80

** -*- koshu -*-

|-- P  /a 30  /b 40
|-- P  /a 30  /b 50
|-- P  /a 40  /b 50

Command koshu calc.k B.k C.k produces:

** -*- koshu -*-
**
**  INPUT
**    calc.k
**    B.k
**    C.k
**
**  OUTPUT
**    <stdout>
**

|-- R  /c 80  /a 10  /b 40
|-- R  /c 80  /a 10  /b 50
|-- R  /c 80  /a 20  /b 50
|-- R  /c 80  /a 30  /b 40
|-- R  /c 80  /a 30  /b 50

|-- R  /c 80  /a 40  /b 50

*** 6 judges

**
**  SUMMARY
**       6 judges on R
**       6 judges in total
**

command

This document is produced by the command:

koshu-inout.sh -o ARGS.md -f ARGS koshu calc.k