• bzoj 1000 A+B Problem (And also my first experience of Emacs)


    problem:https://www.lydsy.com/JudgeOnline/problem.php?id=1000

    This is my first code under Emacs!

    #include<iostream>
    #include<cstdio>
    #include<cstring>
    using namespace std;
    int a,b;
    int main()
    {
      scanf("%d%d",&a,&b);
      printf("%d",a+b);
      return 0;
    }
    View Code

    I think I have to write down how to write such a code as soon as possible in case that I forget how to use it again.

    (Previous explaination:Because the failure of install sogoupinyin, I have to write this blog in English......)

    Let's begin.

    First, you need to install Linux in your computer which has a previous system(Win 7).

      After download Linux from the web of NOI,you have two choice.

      First, you can install Daemon tool to unzip the iso, then click "wubi.exe". By this you can get a twin-system.

      But I failed in this way.It stopped and I don't know how to exit it. Every time I exit by running out the power of my think pad.(Is this bad for think pad?)

      Then I download a Virtual Machine, VMware.

      At first I installed VM14. But it can't run(maybe because it's too advanced). After searching I installed VM 12.(workstation pro)

    But there is still a problem. Seems like we need to allow the VT-X to support the Virtual Machine.

      You can push F2 at the time of turn on the computer. Remember push it as early as possible, ans push it continuously to make sure not to miss the time.

      Then turn to the "Security" or something.You can find the "virtual......", then change it from "enabled" to "abled".

      Oh! Now we can use the VMware! Use it to open the iso. Then what? I can't remember. After something we can run the Ubuntu!

    The first thing you need to do is to change a desktop pictrue.

      Press left-up corner, the "system tools", the "first-select part"(Oh,it's just my translate.Don't mind it too much......), then you find the "outlook"!

    How to install emacs?

      Open the terminal.By Ctrl+Alt+T or in the left-up corner, the "attachment", you can see the "terminal".

      Insert "sudo apt-get install emacs".Then it tells you to insert the password.Don't worry, it's just your password to open the system.Origin of 123456.

      It isn't visible when you insert the password. Just insert them and then press "return".

      Oh! Now we sucssfully installed the Emacs!!!

    How to start emacs?

      Open the terminal. Insert "emacs". Then the emacs has been opened!

    First you can read the introduction. It is the first blue one. Make your cursor there then press "return".

    Yes, it's in chinese! Then you can read it.

    After reading it, I feel like had known a lot. But I still don't know how to write a program.

    What you need is this!https://blog.csdn.net/shuxiao9058/article/details/7633054

    I do exactly following it. Then I wrote out my first code under emacs successfully!

    Oh,how to copy it?https://www.cnblogs.com/CodeKnight/p/3927877.html

      Yeah, just by ctrl+space to choose and by Alt+w to copy.(Maybe it has been introduced in that introduction?)

    So I can be accepted by bzoj in problem 1000.

    All of this is just a beginning.

    Something to study:

    http://www.cnblogs.com/robertzml/archive/2010/03/31/1701374.html (But this is not something.)

    https://blog.csdn.net/redguardtoo/article/details/7222501/ (And this is truly something looks advanced and great!)

  • 相关阅读:
    Android 使用 DownloadManager 管理系统下载任务的方法
    移动互联网时代:你的厕所文学是什么?
    zoj 3777 Problem Arrangement(壮压+背包)
    25个增强iOS应用程序性能的提示和技巧(0基础篇)
    Oracle 同义词
    Oracle loop、while、for循环
    Oracle 序列
    Oracle 视图
    Oracle 集合操作
    Oracle 伪列
  • 原文地址:https://www.cnblogs.com/Narh/p/9236677.html
Copyright © 2020-2023  润新知