精华内容
下载资源
问答
  • Cube

    2019-10-25 16:09:36
    Cube
  • cube-源码

    2021-03-16 14:38:03
    cube
  • 如标题。。。Unity3d如何获取一个Cube的长宽高并打印在控制台上?
  • CUBE:CUBE编程语言-源码

    2021-03-30 06:15:55
    CUBE:CUBE编程语言
  • android cube

    2016-03-11 15:37:56
    android cube 源码库
  • OpenGl Cube

    2015-01-15 22:27:49
    Opengl ES 2.0, android, cube
  • MXCuBE MXCuBE代表高分子Xtallography定制束线环境。 该项目于2005年在开始,此后已被欧洲其他机构采用。 2010年,与以下合作伙伴签署了开发MXCuBE的合作协议: 应急基金 有关MXCuBE项目的最新信息,请参见。 给...
  • 立方体3d 照片的cube3d 演示地址: :
  • CUbE-开源

    2021-05-29 04:59:35
    CUbE,完全的优步实体!
  • cubeide代码补全

    2020-12-05 22:51:47
    cubeide代码补全
  • Cube Stacking

    千次阅读 2021-02-27 22:54:13
    Farmer John and Betsy are playing a game with N (1 &... They start with N stacks, each containing a single cube. Farmer John asks Betsy to perform P (1<= P <= 100,000) operation. There are two type

    Farmer John and Betsy are playing a game with N (1 <= N <= 30,000)identical cubes labeled 1 through N. They start with N stacks, each containing a single cube. Farmer John asks Betsy to perform P (1<= P <= 100,000) operation. There are two types of operations:
    moves and counts.

    • In a move operation, Farmer John asks Bessie to move the stack containing cube X on top of the stack containing cube Y.
    • In a count operation, Farmer John asks Bessie to count the number of cubes on the stack with cube X that are under the cube X and report that value.

    Write a program that can verify the results of the game.

    输入描述:

    • Line 1: A single integer, P

    • Lines 2…P+1: Each of these lines describes a legal operation. Line 2 describes the first operation, etc. Each line begins with a ‘M’ for a move operation or a ‘C’ for a count operation. For move operations, the line also contains two integers: X and Y.For count operations, the line also contains a single integer: X.

    Note that the value for N does not appear in the input file. No move operation will request a move a stack onto itself.

    输出描述:

    Print the output from each of the count operations in the same order as the input file.

    示例1
    输入
    6
    M 1 6
    C 1
    M 2 4
    M 2 6
    C 3
    C 4
    输出
    1
    0
    2

    #include <iostream>
    #include <stdio.h>
    using namespace std;
    struct node
    {
    	int pre;
    	int size;
    	int dis;
    }a[30010];
    void init()
    {
    	for(int i=1;i<=30000;++i){
    		a[i].pre=i;
    		a[i].size=1;
    		a[i].dis=0;
    	}
    }
    int find(int x)
    {
    	if(a[x].pre==x)return x;
    	
    	int k=a[x].pre;
    	int z=find(k);
    	a[x].dis+=a[k].dis;
    	a[x].pre=z;
    	
    	return z;
    }
    void merge(int x,int y)
    {
    	int fx=find(x),fy=find(y);
    	if(fx!=fy){
    		a[fx].pre=fy;
    		a[fx].dis+=a[fy].size;
    		a[fy].size+=a[fx].size;
    	}
    }
    int main()
    {
    	init();
    	int p,x,y;
    	scanf("%d",&p);
    	char s;
    	while(p--)
    	{
    		scanf(" %c",&s);
    		if(s=='M')
    		{
    			scanf("%d%d",&x,&y);
    			merge(x,y);
    		}
    		else
    		{
    			scanf("%d",&x);
    			find(x);
    			printf("%d\n",a[x].dis);
    		}
    	}
    	return 0;
    }
    
    展开全文
  • cube05-源码

    2021-03-25 15:56:09
    cube05
  • cube2.0-源码

    2021-03-09 17:36:23
    cube2.0
  • Cube-开源

    2021-08-07 04:09:52
    Cube 是一组代码,您可以轻松包含在其他批处理文件中。
  • Marching Cube Code

    2016-12-06 19:53:58
    Marching Cube 算法代码
  • marching cube 经典算法,可以快速的实现隐式曲面的网格化显示
  • cube沙盒素材

    2018-04-09 19:54:01
    cube沙盒素材
  • MXCuBE 3 MXCuBE3是数据采集软件MXCuBE(大分子Xtallography定制束线环境)的最新版本。 该项目于2005年在开始,此后被欧洲其他机构采用。 2010年,与以下合作伙伴签署了开发MXCuBE的合作协议: 应急基金 版本3是...
  • cubeIDE_Autocomplete cubeIDE_Autocomplete Eclipse CDT修改 2源文件可以代替源文件。 使用org.eclipse.cdt.ui_6.6.0.201909091956.jar文件替换D:\ ST \ STM32CubeIDE_1.3.0 \ STM32CubeIDE \ plugins
  • l3cube_disrupt l3cube 第 2 轮的编程任务
  • 立方体演示 CubeDemo是CubeEngine的测试项目。
  • CUBE4上位机.exe

    2020-04-10 23:13:09
    CUBE4上位机
  • Cube search, revisited

    2021-02-11 02:17:12
    Cube search, revisited
  • Cube Simulation

    2017-08-29 09:12:38
    Here's a cube whose size of its 3 dimensions are all infinite. Meanwhile, there're 6 programs operating this cube: FILL(X,Y,Z): Fill some part of the cube with different values. memset(cube, 0, ...
  • CUBIEGUI 启动交互式 Cube CUBIEGUI - 推出经典的 3x3x3 Cube CUBIEGUI N - 启动一个 NxNxN 立方体C = CUBIEGUI(N)-还返回Cube对象左键单击立方体面并拖动并释放以旋转立方体的切片立方体。 右键单击将重新定向...
  • cognos dynamic cube

    2014-10-16 21:25:56
    cognos dynamic cube
  • STM32Cube IDE WIN 安装包

    2020-08-31 12:23:35
    STM32Cube IDE WIN 安装包 STM32Cube IDE WIN 安装包 STM32Cube IDE WIN 安装包 STM32Cube IDE WIN 安装包 STM32Cube IDE WIN 安装包 STM32Cube IDE WIN 安装包 STM32Cube IDE WIN 安装包 STM32Cube IDE WIN 安装包
  • fushin cube

    2014-02-11 13:45:20
    huawei fusion cube 华为 FusionCube虚拟化一体机 技术白皮书

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 89,398
精华内容 35,759
关键字:

Cube