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
| /* | |
| Based on the Public Domain MaxRectsBinPack.cpp source by Jukka Jylänki | |
| https://github.com/juj/RectangleBinPack/ | |
| Ported to C# by Sven Magnus | |
| This version is also public domain - do whatever you want with it. | |
| */ | |
| using UnityEngine; | |
| using System.Collections.Generic; |
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
| // AsioUdpClient.cpp: 定义控制台应用程序的入口点。 | |
| // | |
| #include "stdafx.h" | |
| #include <iostream> | |
| #include <boost/asio/high_resolution_timer.hpp> | |
| #include <boost/asio.hpp> |
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
| // tool.cpp: 定义控制台应用程序的入口点。 | |
| // | |
| #include "stdafx.h" | |
| #include <iostream> | |
| #include <string> | |
| #include <io.h> | |
| #include <stdlib.h> | |
| #include <vector> |
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
| enum RoomType | |
| { | |
| Classic = 1, | |
| Tower = 2, | |
| Chicken = 3, | |
| }; | |
| class Room | |
| { | |
| public: |
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
| // Reference | |
| // http://www.cnblogs.com/AndyJee/p/4543424.html | |
| // https://blog.csdn.net/mu399/article/details/7722810 | |
| void PartionArrayMinDiff(const vector<int>& list, vector<int>& listOutL, vector<int>& listOutR) | |
| { | |
| int sum = 0; | |
| for (int num : list) | |
| { | |
| sum += num; | |
| } |