From ad742154e52c5d25ad66bbbf3a9ba7f12234a5e6 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 25 Feb 2023 19:53:34 +0800 Subject: [PATCH] feat: next layout size statistics --- src/klotski_core/ffi/tmain.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/klotski_core/ffi/tmain.cc b/src/klotski_core/ffi/tmain.cc index 31b1538..59901e6 100644 --- a/src/klotski_core/ffi/tmain.cc +++ b/src/klotski_core/ffi/tmain.cc @@ -66,9 +66,15 @@ void tmain() { std::cout << ((clock() - start) * 1000 / CLOCKS_PER_SEC) << "ms" << std::endl; - std::sort(next_size.begin(), next_size.end()); - std::cout << next_size[0] << std::endl; - std::cout << next_size[next_size.size() - 1] << std::endl; +// std::sort(next_size.begin(), next_size.end()); +// std::cout << next_size[0] << std::endl; +// std::cout << next_size[next_size.size() - 1] << std::endl; + + for (uint32_t i = 0; i < 69; ++i) { + + std::cout << i << ": " << std::count(next_size.begin(), next_size.end(), i) << std::endl; + + } printf("tmain exit\n"); }