battle

[Codeforces Round #192 (Div. 2)] D. Biridian Forest

故事扮演 提交于 2020-02-12 16:09:50
D. Biridian Forest time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You're a mikemon breeder currently in the middle of your journey to become a mikemon master. Your current obstacle is go through the infamous Biridian Forest. The forest The Biridian Forest is a two-dimensional grid consisting of r rows and c columns. Each cell in Biridian Forest may contain a tree, or may be vacant. A vacant cell may be occupied by zero or more mikemon breeders (there may also be breeders other than you in the forest). Mikemon breeders (including

B Battle Simulation(icpc水题)

本小妞迷上赌 提交于 2020-01-13 05:45:13
B Battle Simulation A terrible monster is rampaging through Neo Tokyo 5! The Earth Defense Force (EDF) has sent a mech unit1 to defeat the monster. Because there is only a single mech unit available after previous monster rampages, the EDF has decided to simu- late the upcoming battle between the mech and the monster before launching an as- sault. The EDF noted that the monster’s attack pattern can be simulated by a series of moves that it performs in succession. When denoting each of its moves with a single letter, the attack pattern can be simulated as a single string, which should be read

cross origin request error with angularjs 1.2.6

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to make a simple POST request to http://battle.platform45.com/register The server is setup to respond with JSON. So from the command line: $ curl --data '{"name": "Connor", "email": "connorleech@gmail.com"}' http://battle.platform45.com/register successfully returns {"id":"3118","x":1,"y":9}% I try to do the same thing in angular: app.controller('BattleshipCtrl', function ($scope, $http) { $scope.game = {} $scope.newGame = function(name, email){ $http.post("http://battle.platform45.com/register", { name: name, email: email })