ICode9

精准搜索请尝试: 精确搜索
  • AOJ 0033 Ball2020-11-08 14:32:57

    #include<iostream> #include<vector> using namespace std; int n; int num[10]; vector<int> b; vector<int> c; bool check() { if(b.size() > 1) for(int j = 0; j < b.size()-1; j++) if(b[j] > b[j+1]) ret

  • C语言打砖块小游戏2020-10-24 23:00:34

    #include <stdio.h> #include <graphics.h> #include <conio.h> #include <time.h> #include <string.h> #define window_length 500 #define window_high 500 #define map_length (window_length/100) #define map_high

  • Ball Aizu - 0033 DFS搜索2020-08-21 20:00:48

    白书上的一题,因没判好范围把自己WA翻 #include<iostream> #define ll long long using namespace std; ll n,flag; ll arr[105]; void dfs(ll x,ll y,ll cnt){ if(cnt==11){ flag=1; return; } if(arr[cnt]>x) dfs(arr[cnt],y,cnt+1);

  • [LeetCode] 505. The Maze II2020-07-28 06:00:44

    There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up, down, left or right, but it won't stop rolling until hitting a wall. When the ball stops, it could choose the next direction. Given the ball�

  • [LeetCode] 490. The Maze2020-07-28 02:32:17

    There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up, down, left or right, but it won't stop rolling until hitting a wall. When the ball stops, it could choose the next direction. Given the ball�

  • 利用JS的Canves实现打砖块小游戏2020-06-30 19:38:03

    转眼又期末了,朋友的作业就是用JS的canves实现打砖块小游戏,但是她作业蛮多的,有点忙不过来,所以就让我帮帮敲了这东西!!! 效果图: 做出来之后还被你找出了许多的BUG,惭愧啊! 画砖块: for(var i=0;i<10;i++) { for(var j=0;j<grade;j++) { if(brick[i][j]==1) { var b

  • 《每周一点canvas动画》——森林与星海2020-05-21 15:03:55

    每周一点canvas动画代码文件 在上一节《每周一点canvas动画》——3D物理效果中,我们介绍了3维环境下的速度与加速度效果。这一节,我们继续介绍另外两个物理效果:重力和屏幕环绕。 一、重力 三维系统中实现重力效果的方式与二维的情况一样,设定一个重力值,比如g=0.2。然后,在动画循环中

  • 周末休息,用原生JS和CSS给女朋友做了个弹弹球小游戏,她沉迷其中、无法自拔2020-04-20 15:02:26

    上次帮一个粉丝写了这个纯HTML加CSS实现3D立体动态相册,女朋友看到了,说我就没有给她写过这些小玩意,哄她开心。 蛤,听了这话我就很难过。我对她说,等着,马上为你量身定做一个去,你爱玩游戏,整好今天周末给你做个小小的游戏,让你耍一耍~哈哈哈哈,我太机智了。 效果如下: css部分代码: <

  • 反弹球小游戏2020-04-05 14:44:53

    循环,分支和函数等知识点的运用,一些功能函数可自行百度。 编译器用的VS2019,有些方法名称可能不一样 #include<stdio.h> #include<windows.h> #include<conio.h> #include<time.h> int height = 21; //界面尺寸 int width = 30; int ball_x, ball_y; //小球坐标 int ball_v

  • 把川普射上太阳—如何用python制作小游戏2020-03-25 16:57:36

        1.准备 开始之前,你要确保Python和pip已经成功安装在电脑上噢,如果没有,请访问这篇文章:超详细Python安装指南 进行安装。 Windows环境下打开Cmd(开始—运行—CMD),苹果系统环境下请打开Terminal(command+空格输入Terminal),准备开始输入命令安装依赖。 输入以下命令安装我们所

  • xingtai -接小球游戏2.02020-03-12 20:06:54

    # 窗口,退出,图画,操作,战绩,,五毛特效,音乐 # 2D 游戏 import pygame import sys import time # 1.加载中,初始化,loading pygame.init() # 2.窗口 dis分开 play玩 ---展览馆--展示 screen = pygame.display.set_mode((700, 600)) # 3。刷新 update 升级 ball_x = 350 ball_y

  • xingtai -调皮的小球2020-03-10 20:43:42

    # 窗口,退出,图画,操作,战绩,,五毛特效,音乐 # 2D 游戏 import pygame import sys # 1.加载中,初始化,loading pygame.init() # 2.窗口 dis分开 play玩 ---展览馆--展示 screen = pygame.display.set_mode((700,600)) # 3。刷新 update 升级 ball_x = 350 ball_y = 300 while Tr

  • E - Holes2020-02-27 18:02:24

    题目链接:http://codeforces.com/problemset/problem/13/E Little Petya likes to play a lot. Most of all he likes to play a game «Holes». This is a game for one person with following rules: There are N holes located in a single row and numbered from left to ri

  • 名词模块_运动与健康2020-02-24 09:52:10

    名词模块_运动与健康 运动与健康 释义 health 健康 healthy 健康的 cold 感冒 fever 发烧 headache 头痛 toothache 牙痛 advice 建议 medicine 药物 sport 运动 exercise 锻炼,练习 game 游戏,比赛,运动 ball 球 badminton 羽毛球 basketball

  • ODE仿真引擎使用(三)2020-02-06 11:07:42

      这展示了一个超级简单的示例程序,它使用了ODE (Open Dynamics Engine)。在许多编程书籍中,打印“Hellow World”是第一个示例程序。对于物理仿真模拟编程来说,我认为自由落体模拟是最简单的例子。   主要包含知识点:创建world,创建body。 创建世界和地面: 1 world = dWorldCreate

  • Color the ball(差分数组)2020-01-14 22:51:24

    N个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a <= b),lele便为骑上他的“小飞鸽"牌电动车从气球a开始到气球b依次给每个气球涂一次颜色。但是N次以后lele已经忘记了第I个气球已经涂过几次颜色了,你能帮他算出每个气球被涂过几次颜色吗? Input每个测试实例第一

  • QtWebEngine2020-01-01 09:00:52

    QtWebEngine   https://github.com/BALL-Contrib/contrib_qt_5.10.1/trunk

  • processing-python-泡泡龙2019-12-03 15:00:43

    def setup(): size(600,600) global x, y, v, bx, by, curBall, aliveBall, deadBall global COLOR, c, bc #球需要有速度,位置,颜色三个属性 #对应x,y坐标、x,y速度、c #上方球由于固定,可以只有位置和颜色属性 #对应bx,by和bc x, y = width

  • Vue 项目 购物车 模块2019-12-01 19:52:59

    购物车 ajax 接口请求拆分到 service 文件夹中 // goods.js import axios from 'axios' export default { getGoodsInfo () { return axios.get('/api/goods') .then(res => { // 处理数据格式,并返回 const {code, data: goods

  • LeetCode 499. The Maze III2019-11-25 12:55:40

    原题链接在这里:https://leetcode.com/problems/the-maze-iii/ 题目: There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up (u), down (d), left (l) or right (r), but it won't stop rolling until hitting a

  • cocos creator 3D | 蚂蚁庄园运动会星星球2019-11-18 15:01:45

    上一篇文章写了一个简易版的蚂蚁庄园登山赛,有小伙伴留言说想要看星星球的,那么就写起来吧! 效果预览 配置环境 cocos creator 3d 1.0.0 小球点击 3d里节点无法用 cc.Node.EventType.TOUCH_START 监听。最终在论坛上找到一个 raycast 解决方法。参考代码如下。 start() { sys

  • AGC002F Leftmost Ball2019-11-04 11:55:42

    题意 \(n\)个数,每个\(k\)个,将\(n\times k\)个数随意排列,把每数中的第一个改写为\(0\),求不同序列个数。 $n,k \le 2000 $ 传送门 思路 又是一道神仙\(dp\) 设\(dp_{i,j}\)表示当前已经有了\(i\)个\(0\),有\(j\)个数已经填完的方案数。 转移分两种: 填入一个\(0\):\(dp[i+1][j]+=dp[

  • canvas核心技术-如何实现复杂的动画2019-11-01 14:02:56

    本文转载于:猿2048网站➦https://www.mk2048.com/blog/blog.php?id=h0kaib12kj这篇是学习和回顾canvas系列笔记的第五篇,完整笔记详见:canvas核心技术。 在上一篇canvas核心技术-如何实现简单的动画笔记中,我们详细学习了如何进行canvas坐标系的平移,缩放,旋转等操作来实现一些比较简单

  • AT2000 Leftmost Ball2019-10-25 16:00:09

    设\(f[i][j]\)表示当前有\(i\)个白球,一共放完了\(j\)种球 显然有\(j <= i\) 对于每个状态目前已经放下去的球是固定了的,那么考虑转移 放白球 从\(f[i - 1][j]\)转移 放没有出现过的球 \((n - j + 1) * f[i][j - 1] * C(k - 2, n * k - i - (j - 1) * (k - 1) - 1)\) 第二种的C是

  • Go-复习-方法receiver2019-09-19 15:04:02

    package mainimport ( "fmt")type Ball struct { Name string}func (b *Ball) Ping() { fmt.Printf("Ping ,%p\n", b) b.Name=b.Name+"Ping"}func (b Ball) Pong() { fmt.Printf("Pong ,%p\n", &b) b.Name=b.Name+

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有