移転しました : https://github.com/NachiaVivias/domino-tiling-tasks
This file contains hidden or 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
| #line 1 "Main.cpp" | |
| #line 2 "nachia\\misc\\sorting.hpp" | |
| #include <vector> | |
| #include <cassert> | |
| #include <algorithm> | |
| namespace nachia{ |
This file contains hidden or 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
| # include <Siv3D.hpp> // OpenSiv3D v0.6.5 | |
| class IdenticalCirclePackingInCircle { | |
| Array<Vec2> m_circleCenters; | |
| Array<double> m_circleRadius; | |
| Array<int> m_limitBy; | |
| int m_smallCircleCount; | |
| double m_possibleRadius; | |
| Optional<int> m_mouseCapture; |
This file contains hidden or 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
| # include <Siv3D.hpp> // OpenSiv3D v0.6.5 | |
| using Mat = std::array<std::array<double, 4>, 2>; | |
| Vec2 TransformByMat(Mat m, Vec3 v) { | |
| Vec2 res; | |
| res.x = m[0][0] * v.x + m[0][1] * v.y + m[0][2] * v.z + m[0][3]; | |
| res.y = m[1][0] * v.x + m[1][1] * v.y + m[1][2] * v.z + m[1][3]; | |
| return res; | |
| } |
This file contains hidden or 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
| # include <Siv3D.hpp> // OpenSiv3D v0.6.5 | |
| using Mat = std::array<std::array<double, 4>, 2>; | |
| Vec2 TransformByMat(Mat m, Vec3 v) { | |
| Vec2 res; | |
| res.x = m[0][0] * v.x + m[0][1] * v.y + m[0][2] * v.z + m[0][3]; | |
| res.y = m[1][0] * v.x + m[1][1] * v.y + m[1][2] * v.z + m[1][3]; | |
| return res; | |
| } |
This file contains hidden or 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
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the | |
| software to the public domain. We make this dedication for the benefit |
This file contains hidden or 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
| pub trait IStr { | |
| fn sc(&mut self) -> u8; | |
| fn gc(&mut self) -> u8; | |
| fn end(&mut self) -> bool; | |
| fn skipwc(&mut self){ while self.sc().is_ascii_whitespace() { self.gc(); } } | |
| } | |
| use std::io::Read; | |
| pub trait FromIStr<T> { fn rd<Str : IStr>(s : &mut Str) -> T; } |
This file contains hidden or 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
| #include <vector> | |
| #include <iterator> | |
| #include <algorithm> | |
| #include <functional> | |
| template<class Elem> struct vec; | |
| struct iotai; | |
| template<class Iter> |
This file contains hidden or 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
| #include <Siv3D.hpp> | |
| struct AnimationEnvironment { | |
| RectF rect = RectF(-1.0, -1.0, 2.0, 2.0); | |
| }; | |
| struct AnimationEntryRegularOption { | |
| double z = 0.0; | |
| double startTime = 0.0; | |
| double duration = 1.0; |
This file contains hidden or 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
| #include <Siv3D.hpp> | |
| /* | |
| バケット法 | |
| 適当な個数ずつブロックとして分割し、 2 層構造で管理する。 | |
| ブロックのサイズが 2 * B 以上になったら半分に分ける。 |
OlderNewer