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
| # Use example 2 | |
| # Go to translation sheet 3 | |
| # File -> Publish to the web... -> Get a link to the published data -> Choose CSV, Choose the sheet 4 | |
| # Copy the link and Download the CSV file. 5 | |
| # $ ruby script/csv_to_yaml.rb < tmp/CookiTranslationSheet.csv 6 | |
| 7 | |
| require 'csv' 8 | |
| require 'yaml' 9 | |
| require 'active_support/core_ext/hash/deep_merge' 10 | |
| 11 |
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
| class Coin | |
| def initialize(amount) | |
| @amount = amount | |
| @memo = {} | |
| end | |
| COINS = [50, 100, 500, 1000, 5000, 10000] | |
| MAXIMUM = 100000000000 | |
| def count | |
| calc(COINS.count-1, @amount) |
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 <cstdio> | |
| #include <cmath> | |
| #include <typeinfo> | |
| #include <cstdlib> | |
| #include <ctime> | |
| #include <iostream> | |
| #include <algorithm> | |
| #include <vector> | |
| #include <queue> | |
| #include <set> |
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
| /************************************************************** | |
| Problem: 1758 | |
| User: co2meal | |
| Language: C++ | |
| Result: Accepted | |
| Time:7740 ms | |
| Memory:70164 kb | |
| ****************************************************************/ | |
| #include <iostream> |
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
Show hidden characters
| /* | |
| On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings, | |
| and don't need to be repeated here. Anything listed here will take precedence, however. | |
| */ | |
| [ | |
| { "keys": ["alt+shift+n"], "command": "new_window" }, | |
| { "keys": ["alt+shift+w"], "command": "close_window" }, | |
| { "keys": ["alt+o"], "command": "prompt_open" }, | |
| { "keys": ["alt+shift+t"], "command": "reopen_last_file" }, | |
| { "keys": ["alt+super+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} }, |
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
| Number::seconds = -> | |
| @ * 1000 | |
| Number::minutes = -> | |
| @seconds() * 60 | |
| Number::minute = Number::minutes | |
| Number::hours = -> | |
| @minutes() * 60 |
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
| = link_to "view modal", "/", :remote => true, :id => "modal-link" | |
| coffee: | |
| $("#modal-link").handle_modal() |
- 왕좌의 게임 : 기본 내용외 항구에 전함이 있다면 파워 토큰 1개를 얻는다.
- 아군 바다길은 행군과 퇴각 때만 이용함(유닛이 전함인 경우 퇴각할 때만 이용)
- 가문카드 효과 발생 우선순위는 턴 순서로 적용 한다.
- 사상자 처리 : 가문카드의 칼아이콘 수만큼 패한 유저의 해당지역 유닛을 파괴. 탑아이콘 수 만큼 승리한 상대 플레이어의 칼아이콘의 영향을 무효화
- 공성병기가 퇴각시 파괴한다.
- 퇴각한 유닛은 전투력이 없으며 눕혀놓고 다시 전투를 참가할 수없다/ 이런 유닛이 다시 퇴각을 할 경우 파괴한다.
- 주둔군 토큰이 있는 방어자가 패하면 토큰은 완전 제거된다.