UVA804 Petri网模拟 Petri Net Simulation

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=745 [PDF](https://uva.onlinejudge.org/external/8/p804.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA804/7789629a5884a5d6c5b8393ebfdec08b4476c1ed.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA804/e3a816d7f3167cb0a1e82ea6fdff68eab281cc9f.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA804/a80a8b754e0f2eb506b9e731d909911ac1f13ff1.png)