diff options
| author | Yidi <noob999noob999@gmail.com> | 2024-09-08 11:14:12 +0200 |
|---|---|---|
| committer | Yidi <noob999noob999@gmail.com> | 2024-09-08 11:14:12 +0200 |
| commit | de2c4df728e62c5761edf7d58a30f3c59d7d4d20 (patch) | |
| tree | 46801ee99532d9427010c2a9dac3ea236e76b2db /test/graph/reroot.cpp.awk | |
| parent | 9e9c033aa41f786f494cadea43563f83f3e951a3 (diff) | |
add remaining tests
Diffstat (limited to 'test/graph/reroot.cpp.awk')
| -rw-r--r-- | test/graph/reroot.cpp.awk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/graph/reroot.cpp.awk b/test/graph/reroot.cpp.awk new file mode 100644 index 0000000..37ce8c3 --- /dev/null +++ b/test/graph/reroot.cpp.awk @@ -0,0 +1,7 @@ +BEGIN { print "constexpr ll MOD = 1e9 + 7;" } +{ + sub("W w, T x) {\\}", "W w, T x) { return ((v ^ c) + x) * w % MOD; }") + sub("T x, T y) {\\}", "T x, T y) { return x ^ y; }") + sub("int v, T x) {\\}", "int v, T x) { return v ^ x; }") +} +{ print } |
