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 ;
}
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)的更多相关文章
- BZOJ 1000: A+B Problem
问题:A + B问题 描述:http://acm.wust.edu.cn/problem.php?id=1000&soj=0 代码示例: import java.util.Scanner; p ...
- BZOJ 1000 A+B Problem (I/O)
#include<cstdio> int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d&q ...
- 1000: A+B Problem(NetWork Flow)
1000: A+B Problem Time Limit: 1 Sec Memory Limit: 5 MBSubmit: 11814 Solved: 7318[Submit][Status][D ...
- [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[ ...
- 【BZOJ】3339: Rmq Problem & 3585: mex(线段树+特殊的技巧)
http://www.lydsy.com/JudgeOnline/problem.php?id=3585 好神的题. 但是!!!!!!!!!!!!!!我线段树现在要开8倍空间才能过!!!!!!!!!! ...
- HDU 1000 A + B Problem(指针版)
A + B Problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) To ...
- BZOJ 3339 && luogu4137 Rmq Problem / mex(莫队)
P4137 Rmq Problem / mex 题目描述 有一个长度为n的数组{a1,a2,-,an}.m次询问,每次询问一个区间内最小没有出现过的自然数. 输入输出格式 输入格式: 第一行n,m. ...
- 【BZOJ】2301: [HAOI2011]Problem b(莫比乌斯+分块)
http://www.lydsy.com/JudgeOnline/problem.php?id=2301 和这题不是差不多的嘛--[BZOJ]1101: [POI2007]Zap(莫比乌斯+分块) 唯 ...
- [POJ 1000] A+B Problem 经典水题 C++解题报告 JAVA解题报告
A+B Problem Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 311263 Accepted: 1713 ...
随机推荐
- Linux系统下wget命令的使用教程
一.Linux wget简介 wget是linux上的命令行的下载工具.这是一个GPL许可证下的自由软件.Linux wget支持HTTP和FTP协议,支持代理服务器和断点续传功能,能够自动递归远程主 ...
- Execute Disable Bit
“Execute Disable Bit”是Intel在新一代处理器中引入的一项功能,开启该功能后,可以防止病毒.蠕虫.木马等程序利用溢出.无限扩大等手法去破坏系统内存并取得系统的控制权.其工作原理是 ...
- hibernate 实体对象的三种状态以及转换关系。
最新的Hibernate文档中为Hibernate对象定义了四种状态(原来是三种状态,面试的时候基本上问的也是三种状态),分别是:瞬时态(new, or transient).持久态(managed, ...
- TCP的滑动窗口
TCP发送方的窗口可以划分成四个部分: 1.已经发送并且确认的TCP段: 2.已经发送但是没有确认的TCP段: 3.未发送但是接收方准备接收的TCP段, 4.未发送并且接收方也为准备接受的TCP段. ...
- server_2003_r2_standard_sp2_vl_X13-46532
1. 安装的是 cn_win_srv_2003_r2_standard_with_sp2_vl_cd1_X13-46532.iso CD2 它没有要求装 也就没装,貌似 网上搜到 安装CD2需要另外的 ...
- 使用ConcurrentLinkedQueue惨痛的教训
服务端原本有个定时任务对一个集合ArrayList 中的消息做处理. 因为考虑到处理消息是先进先出原则,所以优化的时候考虑改用ConcurrentLinkedQueue 当时没仔细深入研究过这个集合就 ...
- EntityFramework之领域驱动设计实践
EntityFramework之领域驱动设计实践 - 前言 EntityFramework之领域驱动设计实践 (一):从DataTable到EntityObject EntityFramework之领 ...
- Linux find 命令大全
find 含义: 顾名思义,是从来查找满足条件的内容. 从指定目录,递归的查找满足条件的内容. 格式: find [查询目录] [参数] [匹配方式] 文件操作: -name : 查找文件名 ( f ...
- spring3: helloword
借助:eclipse,mavn,spring-tool-sitedchapter2.helloworld 项目搭建好了,让我们来开发接口,此处我们只需实现打印“Hello World!”,所以我们定义 ...
- Appium 自动化测试(4)-- 脚本开发:官方demo演示 android_contacts.py
前提:根据前面的环境搭建介绍,安装好相关环境 step1:启动android模拟器 step2:启动Appium服务端 step3:演示代码执行 这里执行的是官方的演示代码:通讯录管理app,安装打开 ...