2020

    CodeForces-1300 A Non-zero

    Calculate the number of zeros and sum. If there is all zeros, the answer is n + 1;

    Draw maps

    Before you start to draw maps with python, you first need to install basemap and pyshp.

    Install Basemap of Python(Linux)

    Basemap is a plug-in of matplotlib. Matplotlib is a drawing library that helps to draw data in multiple ways using python. And Basemap is used to draw maps. The followings are steps to install basemap.

    CodeForces-1296 C Yet Another Walking Robot

    Stimulate the walking process. Using map, int> to store the points. (The second parameter of map stands for the times of the move, that is the position in the string where it meets a certain points)

    CodeForces-1296 B Food Buying

    This is stimulating the process. First, spend the money of multiples of ten. Spend the most at once. Second, add up the rest and feedback money.

    CodeForces-1296 A Array with Odd Sum

    If there is no odd number, then no matter how to move it will stay all even, so it's NO.

    Git Commands

    Just because I want to solve a problem while setting my gitee(It needs to input user name and password every time I deploy my Blog), a friend let me study git first so that I can understand what the bug is telling about!!!! (not for solving the problem, I learn it just for understanding the alert ㅍ_ㅍ……) Life is so hard……

    I’ll just record some commonly used commands.

    Make previous windows blog available on Linux

    While using windows, I have already had a blog and using hexo system. And my blog is on my mechanical hard disk. I want it to be accessible while using Linux.

    There are two steps to make it.

    Absolute path and Relative path

    There are two ways to represents a directory, Absolute path and Relative path.

    path start start sign
    Absolute root directory /
    Relative current directory ~


TOP
COMMENT
made with ❤️ by o_oyao
©o_oyao 2019-2025

31056 | 16