Coder Social home page Coder Social logo

mytest's Introduction

Mytest

practice01 关于输出字符的练习

(1) 1.c 样例输入

picture01出现错误!!
注意:
1、可以通过修改宏HEIGHT,改变 * 之间的间隔。
2、改变比例为 高度 : 宽度 = 1 : 2。

(2) 2.c 样例输入(可以改变输出的宽度)

picture02出现错误!! picture03出现错误!!
注意:
1、当输入超出20时会提示并丢弃多余输入。
2、可以通过修改宏MAX,改变最多输入数。
3、可以通过修改宏WIDTH,改变数字的高度和宽度。

practice02 动态规划

题目:有 n 个货物,一名工人同时可以搬运 2 个货物,此时会消耗体力 $(x - y)^4$ 问 m 次搬运消耗的体力值最少为多少?

输入格式:
第一行为 n 和 m 第二行为 n 个数字

输出格式:
消耗的最少体力值

输入样例:
9 4
1 3 7 9 10 12 17 20 22

输出样例:
64

picture02出现错误!!
注:具体输出中包括动态规划的提示和过程帮助理解。

mytest's People

Contributors

suixibing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.