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. PHP的date函数的时区问题

    来自:http://www.cnblogs.com/fuland/p/4250462.html(“腐烂的翅膀”的博客) 从php5.1.0开始,php.ini里加入了date.timezone这个选项 ...

  2. Kotlin 卸载APP自身

    package com.example.batdw01.myapplication import android.net.wifi.WifiManager import android.support ...

  3. 如何实现一个简单的RPC

    在如何给老婆解释什么是RPC中,我们讨论了RPC的实现思路. 那么这一次,就让我们通过代码来实现一个简单的RPC吧! RPC的实现原理 正如上一讲所说,RPC主要是为了解决的两个问题: 解决分布式系统 ...

  4. LeetCode——Sum of Two Integers

    LeetCode--Sum of Two Integers Question Calculate the sum of two integers a and b, but you are not al ...

  5. 简单的aop实现日志打印(切入点表达式)

    Spring中可以使用注解或XML文件配置的方式实现AOP. 1.导入jar包 com.springsource.net.sf.cglib -2.2.0.jar com.springsource.or ...

  6. 委托,lambda,匿名方法

    lambda表达式其实就是匿名方法的变体或者说简写. 原来我们用 delegate void Del(int x); Del d = delegate(int x) { return x + 1; } ...

  7. idea结合git使用(正常项目开发过程中的使用)

    1.如何将本地项目代码提交到公司码云上面 1.项目右键 2. 在远处的remotes里面设置你的url

  8. opencv:直方图操作

    示例程序: #include <opencv.hpp> using namespace cv; using namespace std; int main() { Mat src, dst ...

  9. 009——VUE中watch监听属性变化实现类百度搜索栏功能

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  10. QT延时方法

    (转自:http://blog.sina.com.cn/s/blog_613cfe940100kacm.html) 1. void sleep(unsigned int msec){    QTime ...