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 ;
}

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!)

bzoj 1000 A+B Problem (And also my first experience of Emacs)的更多相关文章

  1. BZOJ 1000: A+B Problem

    问题:A + B问题 描述:http://acm.wust.edu.cn/problem.php?id=1000&soj=0 代码示例: import java.util.Scanner; p ...

  2. BZOJ 1000 A+B Problem (I/O)

    #include<cstdio> int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d&q ...

  3. 1000: A+B Problem(NetWork Flow)

    1000: A+B Problem Time Limit: 1 Sec  Memory Limit: 5 MBSubmit: 11814  Solved: 7318[Submit][Status][D ...

  4. [BZOJ 2301] [HAOI 2011] Problem b (莫比乌斯反演)(有证明)

    [BZOJ 2301] [HAOI 2011] Problem b (莫比乌斯反演)(有证明) 题面 T组询问,每次给出a,b,c,d,k,求\(\sum _{i=a}^b\sum _{j=c}^d[ ...

  5. 【BZOJ】3339: Rmq Problem & 3585: mex(线段树+特殊的技巧)

    http://www.lydsy.com/JudgeOnline/problem.php?id=3585 好神的题. 但是!!!!!!!!!!!!!!我线段树现在要开8倍空间才能过!!!!!!!!!! ...

  6. HDU 1000 A + B Problem(指针版)

    A + B Problem Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) To ...

  7. BZOJ 3339 && luogu4137 Rmq Problem / mex(莫队)

    P4137 Rmq Problem / mex 题目描述 有一个长度为n的数组{a1,a2,-,an}.m次询问,每次询问一个区间内最小没有出现过的自然数. 输入输出格式 输入格式: 第一行n,m. ...

  8. 【BZOJ】2301: [HAOI2011]Problem b(莫比乌斯+分块)

    http://www.lydsy.com/JudgeOnline/problem.php?id=2301 和这题不是差不多的嘛--[BZOJ]1101: [POI2007]Zap(莫比乌斯+分块) 唯 ...

  9. [POJ 1000] A+B Problem 经典水题 C++解题报告 JAVA解题报告

        A+B Problem Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 311263   Accepted: 1713 ...

随机推荐

  1. CA认证_demo

    CA认证,即电子认证服务 [1]  ,是指为电子签名相关各方提供真实性.可靠性验证的活动. 证书颁发机构(CA, Certificate Authority)即颁发数字证书的机构.是负责发放和管理数字 ...

  2. Merge-Sort(归并排序)

    Merge-Sort(归并排序) 思想 利用分治的思想,具体实现也就是递归,不断的将问题话分为更小的子问题,当子问题中规模为1的时候,认为数组已经有序了,然后再将子问题求得的结果不断的合并.也就是将长 ...

  3. 因磁盘爆满而导致NameNode HA无法启动

    场景回顾: 测试集群节点分配:35,36是namenode且开启HA,37,38,39即作为datanode,又作为journalnode. 某时间 38节点磁盘爆满,集群中hdfs及依赖的服务全部宕 ...

  4. try中的return语句,在finally前执行还是在finally后执行?

    try中有的return语句,也有finally语句,请问finally是否执行,如果执行的话finally在return前执行还是在return后执行? 答案:finally的内容会执行,并且在re ...

  5. vue 的小秘密

    1.组件可以通过$refs调用其方法. 2.组件上也可用v-model. <input v-model="something"> == 同等 <input v-b ...

  6. 编辑器上的vim插件,常用到的快捷件

    [vim]常用到的插件命令 [Esc] 退出编辑(输入,插入)模式,回到命令模式中(常用)i, I进入插入模式(Insert mode):i 为『从目前光标所在处插入』, I 为『在目前所在行的第一个 ...

  7. mysql中的过滤分组

    本文节选自<MYSQL必知必会> 一. 过滤分组 除了能用GROUP BY分组数据外,MySQL还允许过滤分组,规定包括哪些分组,排除哪些分组.例如,可能想要列出至少有两个订单的所有顾客. ...

  8. UVALive 4998 Simple Encryption

    题目描述: 输入正整数K1(K1<=5000),找一个12位正整数K2使得K1K2=K2(mod 1012). 解题思路: 压缩映射原理:设X是一个完备的度量空间,映射ƒ:Χ→Χ 把每两点的距离 ...

  9. iOS调试技巧(debug)

        说到debug,可以说到的东西就太多了,一个程序员,即使逻辑非常出色,也会出现bug问题,那么debug是每个程序员必备的技巧,尤其是Xcode开发, 苹果公司的开发的Xcode真的是十分强大 ...

  10. Python 面向对象-------补充

    Python 面向对象 Python从设计之初就已经是一门面向对象的语言,正因为如此,在Python中创建一个类和对象是很容易的.本章节我们将详细介绍Python的面向对象编程. 如果你以前没有接触过 ...